freedreno/a4xx: fix incorrect enum type
authorRob Clark <robclark@freedesktop.org>
Thu, 2 Jun 2016 14:49:18 +0000 (10:49 -0400)
committerRob Clark <robclark@freedesktop.org>
Thu, 2 Jun 2016 19:44:07 +0000 (15:44 -0400)
a4xx has it's own enum, different from a2xx/a3xx.

Spotted by coverity: CID 13624581362459

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/a4xx/fd4_draw.h

index 2b23e33b42fe0f7ae0c8938f1d62985fa6dbbe21..c850c242ce438da3f8cf06ede7dbf281c11280d2 100644 (file)
@@ -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) {