Mesa (master): freedreno/a4xx: fix incorrect enum type

Rob Clark robclark at kemper.freedesktop.org
Thu Jun 2 19:44:41 UTC 2016


Module: Mesa
Branch: master
Commit: df64cd68144c52476a2fc2dce4e18e30ce098213
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=df64cd68144c52476a2fc2dce4e18e30ce098213

Author: Rob Clark <robclark at freedesktop.org>
Date:   Thu Jun  2 10:49:18 2016 -0400

freedreno/a4xx: fix incorrect enum type

a4xx has it's own enum, different from a2xx/a3xx.

Spotted by coverity: CID 1362458, 1362459

Signed-off-by: Rob Clark <robclark at freedesktop.org>

---

 src/gallium/drivers/freedreno/a4xx/fd4_draw.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/freedreno/a4xx/fd4_draw.h b/src/gallium/drivers/freedreno/a4xx/fd4_draw.h
index 2b23e33..c850c24 100644
--- a/src/gallium/drivers/freedreno/a4xx/fd4_draw.h
+++ b/src/gallium/drivers/freedreno/a4xx/fd4_draw.h
@@ -88,7 +88,7 @@ fd4_draw(struct fd_context *ctx, struct fd_ringbuffer *ring,
 }
 
 
-static inline enum pc_di_index_size
+static inline enum a4xx_index_size
 fd4_size2indextype(unsigned index_size)
 {
 	switch (index_size) {




More information about the mesa-commit mailing list