[Mesa-dev] [PATCH 2/2] svga: fix coverity MIXED_ENUMS warning

Rob Clark robdclark at gmail.com
Sun May 29 16:32:25 UTC 2016


From: Rob Clark <robclark at freedesktop.org>

Another pipe_resource_usage vs pipe_transfer_usage mixup.

CID 1362169, 1362168

Signed-off-by: Rob Clark <robclark at freedesktop.org>
---
 src/gallium/drivers/svga/svga_resource_buffer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/svga/svga_resource_buffer.c b/src/gallium/drivers/svga/svga_resource_buffer.c
index d91497c..77b35b3 100644
--- a/src/gallium/drivers/svga/svga_resource_buffer.c
+++ b/src/gallium/drivers/svga/svga_resource_buffer.c
@@ -69,7 +69,7 @@ static void *
 svga_buffer_transfer_map(struct pipe_context *pipe,
                          struct pipe_resource *resource,
                          unsigned level,
-                         enum pipe_resource_usage usage,
+                         enum pipe_transfer_usage usage,
                          const struct pipe_box *box,
                          struct pipe_transfer **ptransfer)
 {
-- 
2.5.5



More information about the mesa-dev mailing list