Merge "drm/msm/sde: remove extra entries from interrupt table"
This commit is contained in:
commit
8012ae66a7
15 changed files with 266 additions and 115 deletions
|
@ -316,8 +316,8 @@ static int get_mdp_ver(struct platform_device *pdev)
|
|||
static const struct of_device_id match_types[] = { {
|
||||
.compatible = "qcom,sde-kms",
|
||||
.data = (void *)KMS_SDE,
|
||||
/* end node */
|
||||
} };
|
||||
},
|
||||
{} };
|
||||
struct device *dev = &pdev->dev;
|
||||
const struct of_device_id *match;
|
||||
match = of_match_node(match_types, dev->of_node);
|
||||
|
|
|
@ -368,12 +368,6 @@ void sde_crtc_prepare_commit(struct drm_crtc *crtc,
|
|||
cstate->is_rt = true;
|
||||
}
|
||||
|
||||
if (cstate->num_connectors > 0 && cstate->connectors[0]->encoder)
|
||||
cstate->intf_mode = sde_encoder_get_intf_mode(
|
||||
cstate->connectors[0]->encoder);
|
||||
else
|
||||
cstate->intf_mode = INTF_MODE_NONE;
|
||||
|
||||
/* prepare main output fence */
|
||||
sde_fence_prepare(&sde_crtc->output_fence);
|
||||
}
|
||||
|
@ -424,6 +418,22 @@ static void _sde_crtc_complete_flip(struct drm_crtc *crtc,
|
|||
spin_unlock_irqrestore(&dev->event_lock, flags);
|
||||
}
|
||||
|
||||
enum sde_intf_mode sde_crtc_get_intf_mode(struct drm_crtc *crtc)
|
||||
{
|
||||
struct drm_encoder *encoder;
|
||||
|
||||
if (!crtc || !crtc->dev) {
|
||||
SDE_ERROR("invalid crtc\n");
|
||||
return INTF_MODE_NONE;
|
||||
}
|
||||
|
||||
drm_for_each_encoder(encoder, crtc->dev)
|
||||
if (encoder->crtc == crtc)
|
||||
return sde_encoder_get_intf_mode(encoder);
|
||||
|
||||
return INTF_MODE_NONE;
|
||||
}
|
||||
|
||||
static void sde_crtc_vblank_cb(void *data)
|
||||
{
|
||||
struct drm_crtc *crtc = (struct drm_crtc *)data;
|
||||
|
@ -1665,7 +1675,7 @@ static int sde_crtc_debugfs_state_show(struct seq_file *s, void *v)
|
|||
|
||||
seq_printf(s, "num_connectors: %d\n", cstate->num_connectors);
|
||||
seq_printf(s, "is_rt: %d\n", cstate->is_rt);
|
||||
seq_printf(s, "intf_mode: %d\n", cstate->intf_mode);
|
||||
seq_printf(s, "intf_mode: %d\n", sde_crtc_get_intf_mode(crtc));
|
||||
seq_printf(s, "bw_ctl: %llu\n", cstate->cur_perf.bw_ctl);
|
||||
seq_printf(s, "core_clk_rate: %u\n", cstate->cur_perf.core_clk_rate);
|
||||
seq_printf(s, "max_per_pipe_ib: %llu\n",
|
||||
|
|
|
@ -246,16 +246,10 @@ void sde_crtc_cancel_pending_flip(struct drm_crtc *crtc, struct drm_file *file);
|
|||
bool sde_crtc_is_rt(struct drm_crtc *crtc);
|
||||
|
||||
/**
|
||||
* sde_crtc_get_intf_mode - get interface mode of the given crtc
|
||||
* sde_crtc_get_intf_mode - get primary interface mode of the given crtc
|
||||
* @crtc: Pointert to crtc
|
||||
*/
|
||||
static inline enum sde_intf_mode sde_crtc_get_intf_mode(struct drm_crtc *crtc)
|
||||
{
|
||||
struct sde_crtc_state *cstate =
|
||||
crtc ? to_sde_crtc_state(crtc->state) : NULL;
|
||||
|
||||
return cstate ? cstate->intf_mode : INTF_MODE_NONE;
|
||||
}
|
||||
enum sde_intf_mode sde_crtc_get_intf_mode(struct drm_crtc *crtc);
|
||||
|
||||
/**
|
||||
* sde_core_perf_crtc_is_wb - check if writeback is primary output of this crtc
|
||||
|
|
|
@ -28,6 +28,24 @@
|
|||
|
||||
#define WBID(wb_enc) ((wb_enc) ? wb_enc->wb_dev->wb_idx : -1)
|
||||
|
||||
#define TO_S15D16(_x_) ((_x_) << 7)
|
||||
|
||||
/**
|
||||
* sde_rgb2yuv_601l - rgb to yuv color space conversion matrix
|
||||
*
|
||||
*/
|
||||
static struct sde_csc_cfg sde_encoder_phys_wb_rgb2yuv_601l = {
|
||||
{
|
||||
TO_S15D16(0x0083), TO_S15D16(0x0102), TO_S15D16(0x0032),
|
||||
TO_S15D16(0x1fb5), TO_S15D16(0x1f6c), TO_S15D16(0x00e1),
|
||||
TO_S15D16(0x00e1), TO_S15D16(0x1f45), TO_S15D16(0x1fdc)
|
||||
},
|
||||
{ 0x00, 0x00, 0x00 },
|
||||
{ 0x0040, 0x0200, 0x0200 },
|
||||
{ 0x000, 0x3ff, 0x000, 0x3ff, 0x000, 0x3ff },
|
||||
{ 0x040, 0x3ac, 0x040, 0x3c0, 0x040, 0x3c0 },
|
||||
};
|
||||
|
||||
/**
|
||||
* sde_encoder_phys_wb_is_master - report wb always as master encoder
|
||||
*/
|
||||
|
@ -150,6 +168,15 @@ void sde_encoder_phys_setup_cdm(struct sde_encoder_phys *phys_enc,
|
|||
cdm_cfg->h_cdwn_type,
|
||||
cdm_cfg->v_cdwn_type);
|
||||
|
||||
if (hw_cdm && hw_cdm->ops.setup_csc_data) {
|
||||
ret = hw_cdm->ops.setup_csc_data(hw_cdm,
|
||||
&sde_encoder_phys_wb_rgb2yuv_601l);
|
||||
if (ret < 0) {
|
||||
SDE_ERROR("failed to setup CSC %d\n", ret);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (hw_cdm && hw_cdm->ops.setup_cdwn) {
|
||||
ret = hw_cdm->ops.setup_cdwn(hw_cdm, cdm_cfg);
|
||||
if (ret < 0) {
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#define pr_fmt(fmt) "[drm:%s:%d] " fmt, __func__, __LINE__
|
||||
|
||||
#include <uapi/drm/drm_fourcc.h>
|
||||
#include <uapi/media/msm_media_info.h>
|
||||
|
||||
|
@ -407,6 +409,82 @@ static const struct sde_format sde_format_map[] = {
|
|||
SDE_FETCH_LINEAR, 3),
|
||||
};
|
||||
|
||||
/*
|
||||
* A5x tile formats tables:
|
||||
* These tables hold the A5x tile formats supported.
|
||||
*/
|
||||
static const struct sde_format sde_format_map_tile[] = {
|
||||
INTERLEAVED_RGB_FMT(ARGB8888,
|
||||
COLOR_8BIT, COLOR_8BIT, COLOR_8BIT, COLOR_8BIT,
|
||||
C3_ALPHA, C2_R_Cr, C0_G_Y, C1_B_Cb, 4,
|
||||
true, 4, 0,
|
||||
SDE_FETCH_UBWC, 1),
|
||||
|
||||
INTERLEAVED_RGB_FMT(ABGR8888,
|
||||
COLOR_8BIT, COLOR_8BIT, COLOR_8BIT, COLOR_8BIT,
|
||||
C3_ALPHA, C1_B_Cb, C0_G_Y, C2_R_Cr, 4,
|
||||
true, 4, 0,
|
||||
SDE_FETCH_UBWC, 1),
|
||||
|
||||
INTERLEAVED_RGB_FMT(RGBA8888,
|
||||
COLOR_8BIT, COLOR_8BIT, COLOR_8BIT, COLOR_8BIT,
|
||||
C2_R_Cr, C0_G_Y, C1_B_Cb, C3_ALPHA, 4,
|
||||
true, 4, 0,
|
||||
SDE_FETCH_UBWC, 1),
|
||||
|
||||
INTERLEAVED_RGB_FMT(BGRA8888,
|
||||
COLOR_8BIT, COLOR_8BIT, COLOR_8BIT, COLOR_8BIT,
|
||||
C1_B_Cb, C0_G_Y, C2_R_Cr, C3_ALPHA, 4,
|
||||
true, 4, 0,
|
||||
SDE_FETCH_UBWC, 1),
|
||||
|
||||
INTERLEAVED_RGB_FMT(BGRX8888,
|
||||
COLOR_8BIT, COLOR_8BIT, COLOR_8BIT, COLOR_8BIT,
|
||||
C1_B_Cb, C0_G_Y, C2_R_Cr, C3_ALPHA, 4,
|
||||
false, 4, 0,
|
||||
SDE_FETCH_UBWC, 1),
|
||||
|
||||
INTERLEAVED_RGB_FMT(XRGB8888,
|
||||
COLOR_8BIT, COLOR_8BIT, COLOR_8BIT, COLOR_8BIT,
|
||||
C3_ALPHA, C2_R_Cr, C0_G_Y, C1_B_Cb, 4,
|
||||
false, 4, 0,
|
||||
SDE_FETCH_UBWC, 1),
|
||||
|
||||
INTERLEAVED_RGB_FMT(RGBX8888,
|
||||
COLOR_8BIT, COLOR_8BIT, COLOR_8BIT, COLOR_8BIT,
|
||||
C2_R_Cr, C0_G_Y, C1_B_Cb, C3_ALPHA, 4,
|
||||
false, 4, 0,
|
||||
SDE_FETCH_UBWC, 1),
|
||||
|
||||
PSEUDO_YUV_FMT(NV12,
|
||||
0, COLOR_8BIT, COLOR_8BIT, COLOR_8BIT,
|
||||
C1_B_Cb, C2_R_Cr,
|
||||
SDE_CHROMA_420, SDE_FORMAT_FLAG_YUV,
|
||||
SDE_FETCH_UBWC, 2),
|
||||
|
||||
PSEUDO_YUV_FMT(NV21,
|
||||
0, COLOR_8BIT, COLOR_8BIT, COLOR_8BIT,
|
||||
C2_R_Cr, C1_B_Cb,
|
||||
SDE_CHROMA_420, SDE_FORMAT_FLAG_YUV,
|
||||
SDE_FETCH_UBWC, 2),
|
||||
};
|
||||
|
||||
static const struct sde_format sde_format_map_p010_tile[] = {
|
||||
PSEUDO_YUV_FMT_LOOSE(NV12,
|
||||
0, COLOR_8BIT, COLOR_8BIT, COLOR_8BIT,
|
||||
C1_B_Cb, C2_R_Cr,
|
||||
SDE_CHROMA_420, (SDE_FORMAT_FLAG_YUV | SDE_FORMAT_FLAG_DX),
|
||||
SDE_FETCH_UBWC, 2),
|
||||
};
|
||||
|
||||
static const struct sde_format sde_format_map_tp10_tile[] = {
|
||||
PSEUDO_YUV_FMT(NV12,
|
||||
0, COLOR_8BIT, COLOR_8BIT, COLOR_8BIT,
|
||||
C1_B_Cb, C2_R_Cr,
|
||||
SDE_CHROMA_420, (SDE_FORMAT_FLAG_YUV | SDE_FORMAT_FLAG_DX),
|
||||
SDE_FETCH_UBWC, 2),
|
||||
};
|
||||
|
||||
/*
|
||||
* UBWC formats table:
|
||||
* This table holds the UBWC formats supported.
|
||||
|
@ -417,37 +495,38 @@ static const struct sde_format sde_format_map_ubwc[] = {
|
|||
INTERLEAVED_RGB_FMT(BGR565,
|
||||
0, COLOR_5BIT, COLOR_6BIT, COLOR_5BIT,
|
||||
C2_R_Cr, C0_G_Y, C1_B_Cb, 0, 3,
|
||||
false, 2, 0,
|
||||
false, 2, SDE_FORMAT_FLAG_COMPRESSED,
|
||||
SDE_FETCH_UBWC, 2),
|
||||
|
||||
INTERLEAVED_RGB_FMT(ABGR8888,
|
||||
COLOR_8BIT, COLOR_8BIT, COLOR_8BIT, COLOR_8BIT,
|
||||
C2_R_Cr, C0_G_Y, C1_B_Cb, C3_ALPHA, 4,
|
||||
true, 4, 0,
|
||||
true, 4, SDE_FORMAT_FLAG_COMPRESSED,
|
||||
SDE_FETCH_UBWC, 2),
|
||||
|
||||
INTERLEAVED_RGB_FMT(XBGR8888,
|
||||
COLOR_8BIT, COLOR_8BIT, COLOR_8BIT, COLOR_8BIT,
|
||||
C2_R_Cr, C0_G_Y, C1_B_Cb, C3_ALPHA, 4,
|
||||
false, 4, 0,
|
||||
false, 4, SDE_FORMAT_FLAG_COMPRESSED,
|
||||
SDE_FETCH_UBWC, 2),
|
||||
|
||||
INTERLEAVED_RGB_FMT(ABGR2101010,
|
||||
COLOR_8BIT, COLOR_8BIT, COLOR_8BIT, COLOR_8BIT,
|
||||
C2_R_Cr, C0_G_Y, C1_B_Cb, C3_ALPHA, 4,
|
||||
true, 4, SDE_FORMAT_FLAG_DX,
|
||||
true, 4, SDE_FORMAT_FLAG_DX | SDE_FORMAT_FLAG_COMPRESSED,
|
||||
SDE_FETCH_UBWC, 2),
|
||||
|
||||
INTERLEAVED_RGB_FMT(XBGR2101010,
|
||||
COLOR_8BIT, COLOR_8BIT, COLOR_8BIT, COLOR_8BIT,
|
||||
C2_R_Cr, C0_G_Y, C1_B_Cb, C3_ALPHA, 4,
|
||||
true, 4, SDE_FORMAT_FLAG_DX,
|
||||
true, 4, SDE_FORMAT_FLAG_DX | SDE_FORMAT_FLAG_COMPRESSED,
|
||||
SDE_FETCH_UBWC, 2),
|
||||
|
||||
PSEUDO_YUV_FMT(NV12,
|
||||
0, COLOR_8BIT, COLOR_8BIT, COLOR_8BIT,
|
||||
C1_B_Cb, C2_R_Cr,
|
||||
SDE_CHROMA_420, SDE_FORMAT_FLAG_YUV,
|
||||
SDE_CHROMA_420, SDE_FORMAT_FLAG_YUV |
|
||||
SDE_FORMAT_FLAG_COMPRESSED,
|
||||
SDE_FETCH_UBWC, 4),
|
||||
};
|
||||
|
||||
|
@ -463,7 +542,8 @@ static const struct sde_format sde_format_map_p010_ubwc[] = {
|
|||
PSEUDO_YUV_FMT_LOOSE(NV12,
|
||||
0, COLOR_8BIT, COLOR_8BIT, COLOR_8BIT,
|
||||
C1_B_Cb, C2_R_Cr,
|
||||
SDE_CHROMA_420, (SDE_FORMAT_FLAG_YUV | SDE_FORMAT_FLAG_DX),
|
||||
SDE_CHROMA_420, (SDE_FORMAT_FLAG_YUV | SDE_FORMAT_FLAG_DX |
|
||||
SDE_FORMAT_FLAG_COMPRESSED),
|
||||
SDE_FETCH_UBWC, 4),
|
||||
};
|
||||
|
||||
|
@ -471,7 +551,8 @@ static const struct sde_format sde_format_map_tp10_ubwc[] = {
|
|||
PSEUDO_YUV_FMT(NV12,
|
||||
0, COLOR_8BIT, COLOR_8BIT, COLOR_8BIT,
|
||||
C1_B_Cb, C2_R_Cr,
|
||||
SDE_CHROMA_420, (SDE_FORMAT_FLAG_YUV | SDE_FORMAT_FLAG_DX),
|
||||
SDE_CHROMA_420, (SDE_FORMAT_FLAG_YUV | SDE_FORMAT_FLAG_DX |
|
||||
SDE_FORMAT_FLAG_COMPRESSED),
|
||||
SDE_FETCH_UBWC, 4),
|
||||
};
|
||||
|
||||
|
@ -545,6 +626,7 @@ static int _sde_format_get_plane_sizes_ubwc(
|
|||
{
|
||||
int i;
|
||||
int color;
|
||||
bool meta = SDE_FORMAT_IS_UBWC(fmt);
|
||||
|
||||
memset(layout, 0, sizeof(struct sde_hw_fmt_layout));
|
||||
layout->format = fmt;
|
||||
|
@ -564,7 +646,7 @@ static int _sde_format_get_plane_sizes_ubwc(
|
|||
uint32_t y_meta_scanlines = 0;
|
||||
uint32_t uv_meta_scanlines = 0;
|
||||
|
||||
layout->num_planes = 4;
|
||||
layout->num_planes = 2;
|
||||
layout->plane_pitch[0] = VENUS_Y_STRIDE(color, width);
|
||||
y_sclines = VENUS_Y_SCANLINES(color, height);
|
||||
layout->plane_size[0] = MSM_MEDIA_ALIGN(layout->plane_pitch[0] *
|
||||
|
@ -575,6 +657,10 @@ static int _sde_format_get_plane_sizes_ubwc(
|
|||
layout->plane_size[1] = MSM_MEDIA_ALIGN(layout->plane_pitch[1] *
|
||||
uv_sclines, SDE_UBWC_PLANE_SIZE_ALIGNMENT);
|
||||
|
||||
if (!meta)
|
||||
goto done;
|
||||
|
||||
layout->num_planes += 2;
|
||||
layout->plane_pitch[2] = VENUS_Y_META_STRIDE(color, width);
|
||||
y_meta_scanlines = VENUS_Y_META_SCANLINES(color, height);
|
||||
layout->plane_size[2] = MSM_MEDIA_ALIGN(layout->plane_pitch[2] *
|
||||
|
@ -588,19 +674,23 @@ static int _sde_format_get_plane_sizes_ubwc(
|
|||
} else {
|
||||
uint32_t rgb_scanlines, rgb_meta_scanlines;
|
||||
|
||||
layout->num_planes = 3;
|
||||
layout->num_planes = 1;
|
||||
|
||||
layout->plane_pitch[0] = VENUS_RGB_STRIDE(color, width);
|
||||
rgb_scanlines = VENUS_RGB_SCANLINES(color, height);
|
||||
layout->plane_size[0] = MSM_MEDIA_ALIGN(layout->plane_pitch[0] *
|
||||
rgb_scanlines, SDE_UBWC_PLANE_SIZE_ALIGNMENT);
|
||||
|
||||
if (!meta)
|
||||
goto done;
|
||||
layout->num_planes += 2;
|
||||
layout->plane_pitch[2] = VENUS_RGB_META_STRIDE(color, width);
|
||||
rgb_meta_scanlines = VENUS_RGB_META_SCANLINES(color, height);
|
||||
layout->plane_size[2] = MSM_MEDIA_ALIGN(layout->plane_pitch[2] *
|
||||
rgb_meta_scanlines, SDE_UBWC_PLANE_SIZE_ALIGNMENT);
|
||||
}
|
||||
|
||||
done:
|
||||
for (i = 0; i < SDE_MAX_PLANES; i++)
|
||||
layout->total_size += layout->plane_size[i];
|
||||
|
||||
|
@ -667,7 +757,7 @@ static int _sde_format_get_plane_sizes_linear(
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int _sde_format_get_plane_sizes(
|
||||
int sde_format_get_plane_sizes(
|
||||
const struct sde_format *fmt,
|
||||
const uint32_t w,
|
||||
const uint32_t h,
|
||||
|
@ -683,7 +773,7 @@ static int _sde_format_get_plane_sizes(
|
|||
return -ERANGE;
|
||||
}
|
||||
|
||||
if (SDE_FORMAT_IS_UBWC(fmt))
|
||||
if (SDE_FORMAT_IS_UBWC(fmt) || SDE_FORMAT_IS_TILE(fmt))
|
||||
return _sde_format_get_plane_sizes_ubwc(fmt, w, h, layout);
|
||||
|
||||
return _sde_format_get_plane_sizes_linear(fmt, w, h, layout);
|
||||
|
@ -695,6 +785,7 @@ static int _sde_format_populate_addrs_ubwc(
|
|||
struct sde_hw_fmt_layout *layout)
|
||||
{
|
||||
uint32_t base_addr;
|
||||
bool meta;
|
||||
|
||||
if (!fb || !layout) {
|
||||
DRM_ERROR("invalid pointers\n");
|
||||
|
@ -707,6 +798,8 @@ static int _sde_format_populate_addrs_ubwc(
|
|||
return -EFAULT;
|
||||
}
|
||||
|
||||
meta = SDE_FORMAT_IS_UBWC(layout->format);
|
||||
|
||||
/* Per-format logic for verifying active planes */
|
||||
if (SDE_FORMAT_IS_YUV(layout->format)) {
|
||||
/************************************************/
|
||||
|
@ -736,6 +829,9 @@ static int _sde_format_populate_addrs_ubwc(
|
|||
layout->plane_addr[1] = base_addr + layout->plane_size[0]
|
||||
+ layout->plane_size[2] + layout->plane_size[3];
|
||||
|
||||
if (!meta)
|
||||
goto done;
|
||||
|
||||
/* configure Y metadata plane */
|
||||
layout->plane_addr[2] = base_addr;
|
||||
|
||||
|
@ -763,10 +859,14 @@ static int _sde_format_populate_addrs_ubwc(
|
|||
|
||||
layout->plane_addr[0] = base_addr + layout->plane_size[2];
|
||||
layout->plane_addr[1] = 0;
|
||||
|
||||
if (!meta)
|
||||
goto done;
|
||||
|
||||
layout->plane_addr[2] = base_addr;
|
||||
layout->plane_addr[3] = 0;
|
||||
}
|
||||
|
||||
done:
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -820,7 +920,7 @@ int sde_format_populate_layout(
|
|||
layout->format = to_sde_format(msm_framebuffer_format(fb));
|
||||
|
||||
/* Populate the plane sizes etc via get_format */
|
||||
ret = _sde_format_get_plane_sizes(layout->format, fb->width, fb->height,
|
||||
ret = sde_format_get_plane_sizes(layout->format, fb->width, fb->height,
|
||||
layout);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
@ -829,7 +929,8 @@ int sde_format_populate_layout(
|
|||
plane_addr[i] = layout->plane_addr[i];
|
||||
|
||||
/* Populate the addresses given the fb */
|
||||
if (SDE_FORMAT_IS_UBWC(layout->format))
|
||||
if (SDE_FORMAT_IS_UBWC(layout->format) ||
|
||||
SDE_FORMAT_IS_TILE(layout->format))
|
||||
ret = _sde_format_populate_addrs_ubwc(aspace, fb, layout);
|
||||
else
|
||||
ret = _sde_format_populate_addrs_linear(aspace, fb, layout);
|
||||
|
@ -923,7 +1024,7 @@ int sde_format_check_modified_format(
|
|||
fmt = to_sde_format(msm_fmt);
|
||||
num_base_fmt_planes = drm_format_num_planes(fmt->base.pixel_format);
|
||||
|
||||
ret = _sde_format_get_plane_sizes(fmt, cmd->width, cmd->height,
|
||||
ret = sde_format_get_plane_sizes(fmt, cmd->width, cmd->height,
|
||||
&layout);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
@ -962,14 +1063,14 @@ const struct sde_format *sde_get_sde_format_ext(
|
|||
* All planes used must specify the same modifier.
|
||||
*/
|
||||
if (modifiers_len && !modifiers) {
|
||||
DRM_ERROR("invalid modifiers array\n");
|
||||
SDE_ERROR("invalid modifiers array\n");
|
||||
return NULL;
|
||||
} else if (modifiers && modifiers_len && modifiers[0]) {
|
||||
mod0 = modifiers[0];
|
||||
DBG("plane format modifier 0x%llX", mod0);
|
||||
SDE_DEBUG("plane format modifier 0x%llX\n", mod0);
|
||||
for (i = 1; i < modifiers_len; i++) {
|
||||
if (modifiers[i] != mod0) {
|
||||
DRM_ERROR("bad fmt mod 0x%llX on plane %d\n",
|
||||
SDE_ERROR("bad fmt mod 0x%llX on plane %d\n",
|
||||
modifiers[i], i);
|
||||
return NULL;
|
||||
}
|
||||
|
@ -982,29 +1083,55 @@ const struct sde_format *sde_get_sde_format_ext(
|
|||
map_size = ARRAY_SIZE(sde_format_map);
|
||||
break;
|
||||
case DRM_FORMAT_MOD_QCOM_COMPRESSED:
|
||||
case DRM_FORMAT_MOD_QCOM_COMPRESSED | DRM_FORMAT_MOD_QCOM_TILE:
|
||||
map = sde_format_map_ubwc;
|
||||
map_size = ARRAY_SIZE(sde_format_map_ubwc);
|
||||
DBG("found fmt 0x%X DRM_FORMAT_MOD_QCOM_COMPRESSED", format);
|
||||
SDE_DEBUG("found fmt 0x%X DRM_FORMAT_MOD_QCOM_COMPRESSED\n",
|
||||
format);
|
||||
break;
|
||||
case DRM_FORMAT_MOD_QCOM_DX:
|
||||
map = sde_format_map_p010;
|
||||
map_size = ARRAY_SIZE(sde_format_map_p010);
|
||||
DBG("found fmt 0x%X DRM_FORMAT_MOD_QCOM_DX", format);
|
||||
SDE_DEBUG("found fmt 0x%X DRM_FORMAT_MOD_QCOM_DX\n", format);
|
||||
break;
|
||||
case (DRM_FORMAT_MOD_QCOM_DX | DRM_FORMAT_MOD_QCOM_COMPRESSED):
|
||||
case (DRM_FORMAT_MOD_QCOM_DX | DRM_FORMAT_MOD_QCOM_COMPRESSED |
|
||||
DRM_FORMAT_MOD_QCOM_TILE):
|
||||
map = sde_format_map_p010_ubwc;
|
||||
map_size = ARRAY_SIZE(sde_format_map_p010_ubwc);
|
||||
DBG("found fmt 0x%X DRM_FORMAT_MOD_QCOM_COMPRESSED/DX", format);
|
||||
SDE_DEBUG("found fmt 0x%X DRM_FORMAT_MOD_QCOM_COMPRESSED/DX\n",
|
||||
format);
|
||||
break;
|
||||
case (DRM_FORMAT_MOD_QCOM_DX | DRM_FORMAT_MOD_QCOM_COMPRESSED |
|
||||
DRM_FORMAT_MOD_QCOM_TIGHT):
|
||||
case (DRM_FORMAT_MOD_QCOM_DX | DRM_FORMAT_MOD_QCOM_COMPRESSED |
|
||||
DRM_FORMAT_MOD_QCOM_TIGHT | DRM_FORMAT_MOD_QCOM_TILE):
|
||||
map = sde_format_map_tp10_ubwc;
|
||||
map_size = ARRAY_SIZE(sde_format_map_tp10_ubwc);
|
||||
DBG("found fmt 0x%X DRM_FORMAT_MOD_QCOM_COMPRESSED/DX/TIGHT",
|
||||
SDE_DEBUG(
|
||||
"found fmt 0x%X DRM_FORMAT_MOD_QCOM_COMPRESSED/DX/TIGHT\n",
|
||||
format);
|
||||
break;
|
||||
case DRM_FORMAT_MOD_QCOM_TILE:
|
||||
map = sde_format_map_tile;
|
||||
map_size = ARRAY_SIZE(sde_format_map_tile);
|
||||
SDE_DEBUG("found fmt 0x%X DRM_FORMAT_MOD_QCOM_TILE\n", format);
|
||||
break;
|
||||
case (DRM_FORMAT_MOD_QCOM_TILE | DRM_FORMAT_MOD_QCOM_DX):
|
||||
map = sde_format_map_p010_tile;
|
||||
map_size = ARRAY_SIZE(sde_format_map_p010_tile);
|
||||
SDE_DEBUG("found fmt 0x%X DRM_FORMAT_MOD_QCOM_TILE/DX\n",
|
||||
format);
|
||||
break;
|
||||
case (DRM_FORMAT_MOD_QCOM_TILE | DRM_FORMAT_MOD_QCOM_DX |
|
||||
DRM_FORMAT_MOD_QCOM_TIGHT):
|
||||
map = sde_format_map_tp10_tile;
|
||||
map_size = ARRAY_SIZE(sde_format_map_tp10_tile);
|
||||
SDE_DEBUG("found fmt 0x%X DRM_FORMAT_MOD_QCOM_TILE/DX/TIGHT\n",
|
||||
format);
|
||||
break;
|
||||
default:
|
||||
DRM_ERROR("unsupported format modifier %llX\n", mod0);
|
||||
SDE_ERROR("unsupported format modifier %llX\n", mod0);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -1016,10 +1143,10 @@ const struct sde_format *sde_get_sde_format_ext(
|
|||
}
|
||||
|
||||
if (fmt == NULL)
|
||||
DRM_ERROR("unsupported fmt 0x%X modifier 0x%llX\n",
|
||||
SDE_ERROR("unsupported fmt 0x%X modifier 0x%llX\n",
|
||||
format, mod0);
|
||||
else
|
||||
DBG("fmt %s mod 0x%llX ubwc %d yuv %d",
|
||||
SDE_DEBUG("fmt %s mod 0x%llX ubwc %d yuv %d\n",
|
||||
drm_get_format_name(format), mod0,
|
||||
SDE_FORMAT_IS_UBWC(fmt),
|
||||
SDE_FORMAT_IS_YUV(fmt));
|
||||
|
|
|
@ -58,6 +58,21 @@ uint32_t sde_populate_formats(
|
|||
uint64_t *pixel_modifiers,
|
||||
uint32_t pixel_formats_max);
|
||||
|
||||
/**
|
||||
* sde_format_get_plane_sizes - calculate size and layout of given buffer format
|
||||
* @fmt: pointer to sde_format
|
||||
* @w: width of the buffer
|
||||
* @h: height of the buffer
|
||||
* @layout: layout of the buffer
|
||||
*
|
||||
* Return: size of the buffer
|
||||
*/
|
||||
int sde_format_get_plane_sizes(
|
||||
const struct sde_format *fmt,
|
||||
const uint32_t w,
|
||||
const uint32_t h,
|
||||
struct sde_hw_fmt_layout *layout);
|
||||
|
||||
/**
|
||||
* sde_format_check_modified_format - validate format and buffers for
|
||||
* sde non-standard, i.e. modified format
|
||||
|
|
|
@ -428,8 +428,8 @@ static uint32_t _sde_copy_formats(
|
|||
return 0;
|
||||
|
||||
for (i = 0, cur_pos = dst_list_pos;
|
||||
(cur_pos < (dst_list_size - 1)) && src_list[i].fourcc_format
|
||||
&& (i < src_list_size); ++i, ++cur_pos)
|
||||
(cur_pos < (dst_list_size - 1)) && (i < src_list_size)
|
||||
&& src_list[i].fourcc_format; ++i, ++cur_pos)
|
||||
dst_list[cur_pos] = src_list[i];
|
||||
|
||||
dst_list[cur_pos].fourcc_format = 0;
|
||||
|
@ -503,6 +503,7 @@ static int _validate_dt_entry(struct device_node *np,
|
|||
rc = -EINVAL;
|
||||
}
|
||||
*off_count = 0;
|
||||
memset(prop_count, 0, sizeof(int) * prop_size);
|
||||
return rc;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
|
||||
/* Copyright (c) 2015-2017, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
|
@ -88,50 +88,12 @@ static struct sde_cdm_cfg *_cdm_offset(enum sde_cdm cdm,
|
|||
return ERR_PTR(-EINVAL);
|
||||
}
|
||||
|
||||
static void sde_hw_cdm_setup_csc_10bit(struct sde_hw_cdm *ctx,
|
||||
static int sde_hw_cdm_setup_csc_10bit(struct sde_hw_cdm *ctx,
|
||||
struct sde_csc_cfg *data)
|
||||
{
|
||||
struct sde_hw_blk_reg_map *c = &ctx->hw;
|
||||
u32 csc_reg_off = CDM_CSC_10_MATRIX_COEFF_0;
|
||||
u32 val;
|
||||
sde_hw_csc_setup(&ctx->hw, CDM_CSC_10_MATRIX_COEFF_0, data, true);
|
||||
|
||||
/* matrix coeff */
|
||||
val = data->csc_mv[0] | (data->csc_mv[1] << 16);
|
||||
SDE_REG_WRITE(c, csc_reg_off, val);
|
||||
val = data->csc_mv[2] | (data->csc_mv[3] << 16);
|
||||
SDE_REG_WRITE(c, csc_reg_off + 0x4, val);
|
||||
val = data->csc_mv[4] | (data->csc_mv[5] << 16);
|
||||
SDE_REG_WRITE(c, csc_reg_off + 0x8, val);
|
||||
val = data->csc_mv[6] | (data->csc_mv[7] << 16);
|
||||
SDE_REG_WRITE(c, csc_reg_off + 0xc, val);
|
||||
val = data->csc_mv[8];
|
||||
SDE_REG_WRITE(c, csc_reg_off + 0x10, val);
|
||||
|
||||
/* Pre clamp */
|
||||
val = (data->csc_pre_lv[0] << 16) | data->csc_pre_lv[1];
|
||||
SDE_REG_WRITE(c, csc_reg_off + 0x14, val);
|
||||
val = (data->csc_pre_lv[2] << 16) | data->csc_pre_lv[3];
|
||||
SDE_REG_WRITE(c, csc_reg_off + 0x18, val);
|
||||
val = (data->csc_pre_lv[4] << 16) | data->csc_pre_lv[5];
|
||||
SDE_REG_WRITE(c, csc_reg_off + 0x1c, val);
|
||||
|
||||
/* Post clamp */
|
||||
val = (data->csc_post_lv[0] << 16) | data->csc_post_lv[1];
|
||||
SDE_REG_WRITE(c, csc_reg_off + 0x20, val);
|
||||
val = (data->csc_post_lv[2] << 16) | data->csc_post_lv[3];
|
||||
SDE_REG_WRITE(c, csc_reg_off + 0x24, val);
|
||||
val = (data->csc_post_lv[4] << 16) | data->csc_post_lv[5];
|
||||
SDE_REG_WRITE(c, csc_reg_off + 0x28, val);
|
||||
|
||||
/* Pre-Bias */
|
||||
SDE_REG_WRITE(c, csc_reg_off + 0x2c, data->csc_pre_bv[0]);
|
||||
SDE_REG_WRITE(c, csc_reg_off + 0x30, data->csc_pre_bv[1]);
|
||||
SDE_REG_WRITE(c, csc_reg_off + 0x34, data->csc_pre_bv[2]);
|
||||
|
||||
/* Post-Bias */
|
||||
SDE_REG_WRITE(c, csc_reg_off + 0x38, data->csc_post_bv[0]);
|
||||
SDE_REG_WRITE(c, csc_reg_off + 0x3c, data->csc_post_bv[1]);
|
||||
SDE_REG_WRITE(c, csc_reg_off + 0x40, data->csc_post_bv[2]);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int sde_hw_cdm_setup_cdwn(struct sde_hw_cdm *ctx,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
|
||||
/* Copyright (c) 2015-2017, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
|
@ -65,8 +65,9 @@ struct sde_hw_cdm_ops {
|
|||
* to program a different matrix than default matrix.
|
||||
* @cdm: Pointer to the chroma down context structure
|
||||
* @data Pointer to CSC configuration data
|
||||
* return: 0 if success; error code otherwise
|
||||
*/
|
||||
void (*setup_csc_data)(struct sde_hw_cdm *cdm,
|
||||
int (*setup_csc_data)(struct sde_hw_cdm *cdm,
|
||||
struct sde_csc_cfg *data);
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (c) 2016, The Linux Foundation. All rights reserved.
|
||||
/* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
|
@ -357,37 +357,32 @@ static const struct sde_irq_type sde_irq_map[] = {
|
|||
SDE_INTR_HIST_VIG_1_RSTSEQ_DONE, 2},
|
||||
{ SDE_IRQ_TYPE_RESERVED, 0, 0, 2},
|
||||
{ SDE_IRQ_TYPE_RESERVED, 0, 0, 2},
|
||||
/* irq_idx: 68-71 */
|
||||
/* irq_idx: 72-75 */
|
||||
{ SDE_IRQ_TYPE_HIST_VIG_DONE, SSPP_VIG2, SDE_INTR_HIST_VIG_2_DONE, 2},
|
||||
{ SDE_IRQ_TYPE_HIST_VIG_RSTSEQ, SSPP_VIG2,
|
||||
SDE_INTR_HIST_VIG_2_RSTSEQ_DONE, 2},
|
||||
{ SDE_IRQ_TYPE_HIST_VIG_DONE, SSPP_VIG3, SDE_INTR_HIST_VIG_3_DONE, 2},
|
||||
{ SDE_IRQ_TYPE_HIST_VIG_RSTSEQ, SSPP_VIG3,
|
||||
SDE_INTR_HIST_VIG_3_RSTSEQ_DONE, 2},
|
||||
/* irq_idx: 72-75 */
|
||||
/* irq_idx: 76-79 */
|
||||
{ SDE_IRQ_TYPE_HIST_DSPP_DONE, DSPP_0, SDE_INTR_HIST_DSPP_0_DONE, 2},
|
||||
{ SDE_IRQ_TYPE_HIST_DSPP_RSTSEQ, DSPP_0,
|
||||
SDE_INTR_HIST_DSPP_0_RSTSEQ_DONE, 2},
|
||||
{ SDE_IRQ_TYPE_RESERVED, 0, 0, 2},
|
||||
{ SDE_IRQ_TYPE_RESERVED, 0, 0, 2},
|
||||
/* irq_idx: 76-79 */
|
||||
/* irq_idx: 80-83 */
|
||||
{ SDE_IRQ_TYPE_HIST_DSPP_DONE, DSPP_1, SDE_INTR_HIST_DSPP_1_DONE, 2},
|
||||
{ SDE_IRQ_TYPE_HIST_DSPP_RSTSEQ, DSPP_1,
|
||||
SDE_INTR_HIST_DSPP_1_RSTSEQ_DONE, 2},
|
||||
{ SDE_IRQ_TYPE_RESERVED, 0, 0, 2},
|
||||
{ SDE_IRQ_TYPE_RESERVED, 0, 0, 2},
|
||||
/* irq_idx: 80-83 */
|
||||
/* irq_idx: 84-87 */
|
||||
{ SDE_IRQ_TYPE_HIST_DSPP_DONE, DSPP_2, SDE_INTR_HIST_DSPP_2_DONE, 2},
|
||||
{ SDE_IRQ_TYPE_HIST_DSPP_RSTSEQ, DSPP_2,
|
||||
SDE_INTR_HIST_DSPP_2_RSTSEQ_DONE, 2},
|
||||
{ SDE_IRQ_TYPE_HIST_DSPP_DONE, DSPP_3, SDE_INTR_HIST_DSPP_3_DONE, 2},
|
||||
{ SDE_IRQ_TYPE_HIST_DSPP_RSTSEQ, DSPP_3,
|
||||
SDE_INTR_HIST_DSPP_3_RSTSEQ_DONE, 2},
|
||||
/* irq_idx: 84-87 */
|
||||
{ SDE_IRQ_TYPE_RESERVED, 0, 0, 2},
|
||||
{ SDE_IRQ_TYPE_RESERVED, 0, 0, 2},
|
||||
{ SDE_IRQ_TYPE_RESERVED, 0, 0, 2},
|
||||
{ SDE_IRQ_TYPE_RESERVED, 0, 0, 2},
|
||||
/* irq_idx: 88-91 */
|
||||
{ SDE_IRQ_TYPE_RESERVED, 0, 0, 2},
|
||||
{ SDE_IRQ_TYPE_RESERVED, 0, 0, 2},
|
||||
|
@ -905,7 +900,7 @@ static u32 sde_hw_intr_get_interrupt_status(struct sde_hw_intr *intr,
|
|||
sde_intr_set[reg_idx].status_off) &
|
||||
sde_irq_map[irq_idx].irq_mask;
|
||||
if (intr_status && clear)
|
||||
SDE_REG_WRITE(&intr->hw, sde_intr_set[irq_idx].clr_off,
|
||||
SDE_REG_WRITE(&intr->hw, sde_intr_set[reg_idx].clr_off,
|
||||
intr_status);
|
||||
|
||||
spin_unlock_irqrestore(&intr->mask_lock, irq_flags);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
|
||||
/* Copyright (c) 2015-2017, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
|
@ -44,17 +44,24 @@
|
|||
enum sde_format_flags {
|
||||
SDE_FORMAT_FLAG_YUV_BIT,
|
||||
SDE_FORMAT_FLAG_DX_BIT,
|
||||
SDE_FORMAT_FLAG_COMPRESSED_BIT,
|
||||
SDE_FORMAT_FLAG_BIT_MAX,
|
||||
};
|
||||
|
||||
#define SDE_FORMAT_FLAG_YUV BIT(SDE_FORMAT_FLAG_YUV_BIT)
|
||||
#define SDE_FORMAT_FLAG_DX BIT(SDE_FORMAT_FLAG_DX_BIT)
|
||||
#define SDE_FORMAT_FLAG_COMPRESSED BIT(SDE_FORMAT_FLAG_COMPRESSED_BIT)
|
||||
#define SDE_FORMAT_IS_YUV(X) \
|
||||
(test_bit(SDE_FORMAT_FLAG_YUV_BIT, (X)->flag))
|
||||
#define SDE_FORMAT_IS_DX(X) \
|
||||
(test_bit(SDE_FORMAT_FLAG_DX_BIT, (X)->flag))
|
||||
#define SDE_FORMAT_IS_LINEAR(X) ((X)->fetch_mode == SDE_FETCH_LINEAR)
|
||||
#define SDE_FORMAT_IS_UBWC(X) ((X)->fetch_mode == SDE_FETCH_UBWC)
|
||||
#define SDE_FORMAT_IS_TILE(X) \
|
||||
(((X)->fetch_mode == SDE_FETCH_UBWC) && \
|
||||
!test_bit(SDE_FORMAT_FLAG_COMPRESSED_BIT, (X)->flag))
|
||||
#define SDE_FORMAT_IS_UBWC(X) \
|
||||
(((X)->fetch_mode == SDE_FETCH_UBWC) && \
|
||||
test_bit(SDE_FORMAT_FLAG_COMPRESSED_BIT, (X)->flag))
|
||||
|
||||
#define SDE_BLEND_FG_ALPHA_FG_CONST (0 << 0)
|
||||
#define SDE_BLEND_FG_ALPHA_BG_CONST (1 << 0)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
|
||||
/* Copyright (c) 2015-2017, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
|
@ -755,14 +755,17 @@ static void sde_hw_sspp_setup_csc(struct sde_hw_pipe *ctx,
|
|||
struct sde_csc_cfg *data)
|
||||
{
|
||||
u32 idx;
|
||||
bool csc10 = false;
|
||||
|
||||
if (_sspp_subblk_offset(ctx, SDE_SSPP_CSC, &idx) || !data)
|
||||
return;
|
||||
|
||||
if (test_bit(SDE_SSPP_CSC_10BIT, &ctx->cap->features))
|
||||
if (test_bit(SDE_SSPP_CSC_10BIT, &ctx->cap->features)) {
|
||||
idx += CSC_10BIT_OFFSET;
|
||||
csc10 = true;
|
||||
}
|
||||
|
||||
sde_hw_csc_setup(&ctx->hw, idx, data);
|
||||
sde_hw_csc_setup(&ctx->hw, idx, data, csc10);
|
||||
}
|
||||
|
||||
static void sde_hw_sspp_setup_sharpening(struct sde_hw_pipe *ctx,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
|
||||
/* Copyright (c) 2015-2017, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
|
@ -42,9 +42,10 @@ u32 *sde_hw_util_get_log_mask_ptr(void)
|
|||
|
||||
void sde_hw_csc_setup(struct sde_hw_blk_reg_map *c,
|
||||
u32 csc_reg_off,
|
||||
struct sde_csc_cfg *data)
|
||||
struct sde_csc_cfg *data, bool csc10)
|
||||
{
|
||||
static const u32 matrix_shift = 7;
|
||||
u32 clamp_shift = csc10 ? 16 : 8;
|
||||
u32 val;
|
||||
|
||||
/* matrix coeff - convert S15.16 to S4.9 */
|
||||
|
@ -64,19 +65,19 @@ void sde_hw_csc_setup(struct sde_hw_blk_reg_map *c,
|
|||
SDE_REG_WRITE(c, csc_reg_off + 0x10, val);
|
||||
|
||||
/* Pre clamp */
|
||||
val = (data->csc_pre_lv[0] << 8) | data->csc_pre_lv[1];
|
||||
val = (data->csc_pre_lv[0] << clamp_shift) | data->csc_pre_lv[1];
|
||||
SDE_REG_WRITE(c, csc_reg_off + 0x14, val);
|
||||
val = (data->csc_pre_lv[2] << 8) | data->csc_pre_lv[3];
|
||||
val = (data->csc_pre_lv[2] << clamp_shift) | data->csc_pre_lv[3];
|
||||
SDE_REG_WRITE(c, csc_reg_off + 0x18, val);
|
||||
val = (data->csc_pre_lv[4] << 8) | data->csc_pre_lv[5];
|
||||
val = (data->csc_pre_lv[4] << clamp_shift) | data->csc_pre_lv[5];
|
||||
SDE_REG_WRITE(c, csc_reg_off + 0x1c, val);
|
||||
|
||||
/* Post clamp */
|
||||
val = (data->csc_post_lv[0] << 8) | data->csc_post_lv[1];
|
||||
val = (data->csc_post_lv[0] << clamp_shift) | data->csc_post_lv[1];
|
||||
SDE_REG_WRITE(c, csc_reg_off + 0x20, val);
|
||||
val = (data->csc_post_lv[2] << 8) | data->csc_post_lv[3];
|
||||
val = (data->csc_post_lv[2] << clamp_shift) | data->csc_post_lv[3];
|
||||
SDE_REG_WRITE(c, csc_reg_off + 0x24, val);
|
||||
val = (data->csc_post_lv[4] << 8) | data->csc_post_lv[5];
|
||||
val = (data->csc_post_lv[4] << clamp_shift) | data->csc_post_lv[5];
|
||||
SDE_REG_WRITE(c, csc_reg_off + 0x28, val);
|
||||
|
||||
/* Pre-Bias */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
|
||||
/* Copyright (c) 2015-2017, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
|
@ -49,7 +49,7 @@ void *sde_hw_util_get_dir(void);
|
|||
|
||||
void sde_hw_csc_setup(struct sde_hw_blk_reg_map *c,
|
||||
u32 csc_reg_off,
|
||||
struct sde_csc_cfg *data);
|
||||
struct sde_csc_cfg *data, bool csc10);
|
||||
|
||||
#endif /* _SDE_HW_UTIL_H */
|
||||
|
||||
|
|
|
@ -257,6 +257,14 @@ extern "C" {
|
|||
*/
|
||||
#define DRM_FORMAT_MOD_QCOM_TIGHT fourcc_mod_code(QCOM, 0x4)
|
||||
|
||||
/*
|
||||
* QTI Tile Format
|
||||
*
|
||||
* Refers to a tile variant of the base format.
|
||||
* Implementation may be platform and base-format specific.
|
||||
*/
|
||||
#define DRM_FORMAT_MOD_QCOM_TILE fourcc_mod_code(QCOM, 0x8)
|
||||
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue