summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell King <rmk+cubox@arm.linux.org.uk>2013-08-27 23:29:13 +0100
committerRussell King <rmk@arm.linux.org.uk>2013-10-29 19:21:10 +0000
commitebf342580709fc974f6be49edb59bfd82af54111 (patch)
tree32e59bd2f1c2f7e0a5027cd4087e5d1dff8e26cd
parent8575518800ee160f50e586b1587a727cdbade10f (diff)
Rename vivante_format() to vivante_pict_format()
This better reflects its purpose. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
-rw-r--r--src/vivante_accel.c14
-rw-r--r--src/vivante_utils.c2
-rw-r--r--src/vivante_utils.h2
3 files changed, 9 insertions, 9 deletions
diff --git a/src/vivante_accel.c b/src/vivante_accel.c
index 0fcce25..bbfd934 100644
--- a/src/vivante_accel.c
+++ b/src/vivante_accel.c
@@ -1208,7 +1208,7 @@ static struct vivante_pixmap *vivante_acquire_src(struct vivante *vivante,
if (fill) {
*xout = 0;
*yout = 0;
- *fout = vivante_format(PICT_a8r8g8b8, FALSE);
+ *fout = vivante_pict_format(PICT_a8r8g8b8, FALSE);
if (PICT_FORMAT_A(pict->format) == 0)
colour |= 0xff000000;
if (!vivante_fill_single(vivante, vTemp, clip, *fout, colour))
@@ -1226,7 +1226,7 @@ static struct vivante_pixmap *vivante_acquire_src(struct vivante *vivante,
transform_is_integer_translation(pict->transform, &tx, &ty)) {
*xout = ox + x + tx + drawable->x;
*yout = ox + y + ty + drawable->y;
- *fout = vivante_format(pict->format, FALSE);
+ *fout = vivante_pict_format(pict->format, FALSE);
} else {
PictFormatPtr f;
PicturePtr dest;
@@ -1246,7 +1246,7 @@ static struct vivante_pixmap *vivante_acquire_src(struct vivante *vivante,
FreePicture(dest, 0);
*xout = 0;
*yout = 0;
- *fout = vivante_format(PICT_a8r8g8b8, FALSE);
+ *fout = vivante_pict_format(PICT_a8r8g8b8, FALSE);
vSrc = vTemp;
}
@@ -1366,7 +1366,7 @@ fprintf(stderr, "%s: i: op 0x%02x src=%p,%d,%d mask=%p,%d,%d dst=%p,%d,%d %ux%u\
* valid.
*/
if (op == PictOpClear) {
- fSrc = vivante_format(pSrc->format, TRUE);
+ fSrc = vivante_pict_format(pSrc->format, TRUE);
if (!vivante_fill_single(vivante, vTemp, &clipTemp, fSrc, 0))
goto failed;
vSrc = vTemp;
@@ -1441,7 +1441,7 @@ fprintf(stderr, "%s: 0: OP 0x%02x src=%p[%p,%p,%u,%ux%u]x%dy%d mask=%p[%p,%u,%ux
* while copying. (If this doesn't work, use OR
* in the brush with maximum alpha value.)
*/
- fTemp = vivante_format(pSrc->format, TRUE);
+ fTemp = vivante_pict_format(pSrc->format, TRUE);
if (!vivante_blend(vivante, &clipTemp, NULL,
vTemp, fTemp, &rdst,
@@ -1457,7 +1457,7 @@ fprintf(stderr, "%s: 0: OP 0x%02x src=%p[%p,%p,%u,%ux%u]x%dy%d mask=%p[%p,%u,%ux
rsrc.right = oMask_x + width;
rsrc.bottom = oMask_y + height;
- fMask = vivante_format(pMask->format, FALSE);
+ fMask = vivante_pict_format(pMask->format, FALSE);
#if 0
if (pMask && pMask->pDrawable)
@@ -1479,7 +1479,7 @@ if (pMask && pMask->pDrawable)
}
/* Get the Vivante destination format early */
- fDst = vivante_format(pDst->format, FALSE);
+ fDst = vivante_pict_format(pDst->format, FALSE);
//vivante_batch_wait_commit(vivante, vSrc);
//dump_vPix(buf, vivante, vSrc, 1, "A-TSRC%02.2x-%p", op, pSrc);
diff --git a/src/vivante_utils.c b/src/vivante_utils.c
index 527ee12..ffe9785 100644
--- a/src/vivante_utils.c
+++ b/src/vivante_utils.c
@@ -195,7 +195,7 @@ void vivante_prepare_drawable(DrawablePtr pDrawable, int access)
}
#ifdef RENDER
-gceSURF_FORMAT vivante_format(PictFormatShort format, Bool force)
+gceSURF_FORMAT vivante_pict_format(PictFormatShort format, Bool force)
{
switch (format) {
#define C(pf,vf,af) case PICT_##pf: return force ? gcvSURF_##af : gcvSURF_##vf
diff --git a/src/vivante_utils.h b/src/vivante_utils.h
index eac45e3..f21cf86 100644
--- a/src/vivante_utils.h
+++ b/src/vivante_utils.h
@@ -40,7 +40,7 @@ enum {
void vivante_finish_drawable(DrawablePtr pDrawable, int access);
void vivante_prepare_drawable(DrawablePtr pDrawable, int access);
-gceSURF_FORMAT vivante_format(PictFormatShort format, Bool force);
+gceSURF_FORMAT vivante_pict_format(PictFormatShort format, Bool force);
/*
* The following functions are here to allow the compiler to inline them