summaryrefslogtreecommitdiff
path: root/drivers/mxc/gpu-viv/hal
diff options
context:
space:
mode:
authorChenyan Feng <ella.feng@nxp.com>2018-06-19 18:11:36 +0800
committerLeonard Crestez <leonard.crestez@nxp.com>2018-08-24 12:41:33 +0300
commit5cfc4a8827903f8ef9e004809558fc38de423512 (patch)
tree0d4385a76c324573cbb0cc2df5060054853e8328 /drivers/mxc/gpu-viv/hal
parent37137316aacb3b11dc245dc8edb2e8182632666b (diff)
MGS-3953 [#imx-1045] ES11 segmentation fault on 8MM board
Some 2D APIs were not compatible with 64bit, resulting in some memory address not accessible, Refine them as internal usage. Date: 19th Jun, 2018 Signed-off-by: Ella Feng <ella.feng@nxp.com>
Diffstat (limited to 'drivers/mxc/gpu-viv/hal')
-rw-r--r--drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal_raster.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal_raster.h b/drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal_raster.h
index a2bdb8f0c451..988577ff9285 100644
--- a/drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal_raster.h
+++ b/drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal_raster.h
@@ -339,6 +339,24 @@ gco2D_SetColorSourceEx(
IN gctUINT32 TransparencyColor
);
+/* Same as gco2D_SetColorSourceEx, but with better 64bit SW-path support.
+** Please do NOT export the API now.
+*/
+gceSTATUS
+gco2D_SetColorSource64(
+ IN gco2D Engine,
+ IN gctUINT32 Address,
+ IN gctPOINTER Logical,
+ IN gctUINT32 Stride,
+ IN gceSURF_FORMAT Format,
+ IN gceSURF_ROTATION Rotation,
+ IN gctUINT32 SurfaceWidth,
+ IN gctUINT32 SurfaceHeight,
+ IN gctBOOL CoordRelative,
+ IN gceSURF_TRANSPARENCY Transparency,
+ IN gctUINT32 TransparencyColor
+ );
+
/* Configure color source. */
gceSTATUS
gco2D_SetColorSourceAdvanced(
@@ -389,6 +407,23 @@ gco2D_SetMaskedSourceEx(
IN gctUINT32 SurfaceHeight
);
+/* Same as gco2D_SetMaskedSourceEx, but with better 64bit SW-path support.
+** Please do NOT export the API now.
+*/
+gceSTATUS
+gco2D_SetMaskedSource64(
+ IN gco2D Engine,
+ IN gctUINT32 Address,
+ IN gctPOINTER Logical,
+ IN gctUINT32 Stride,
+ IN gceSURF_FORMAT Format,
+ IN gctBOOL CoordRelative,
+ IN gceSURF_MONOPACK MaskPack,
+ IN gceSURF_ROTATION Rotation,
+ IN gctUINT32 SurfaceWidth,
+ IN gctUINT32 SurfaceHeight
+ );
+
/* Setup the source rectangle. */
gceSTATUS
gco2D_SetSource(
@@ -424,6 +459,21 @@ gco2D_SetTargetEx(
IN gctUINT32 SurfaceHeight
);
+/* Same as gco2D_SetTargetEx, but with better 64bit SW-path support.
+** Please do NOT export the API now.
+*/
+gceSTATUS
+gco2D_SetTarget64(
+ IN gco2D Engine,
+ IN gctUINT32 Address,
+ IN gctPOINTER Logical,
+ IN gctUINT32 Stride,
+ IN gceSURF_ROTATION Rotation,
+ IN gctUINT32 SurfaceWidth,
+ IN gctUINT32 SurfaceHeight
+ );
+
+
/* Calculate and program the stretch factors. */
gceSTATUS
gco2D_CalcStretchFactor(
@@ -1055,3 +1105,5 @@ gco2D_NatureRotateTranslation(
#endif
#endif /* __gc_hal_raster_h_ */
+
+