Mesa (master): softpipe: fix a warning due to an incorrect enum comparison
Marek Olšák
mareko at kemper.freedesktop.org
Thu Apr 21 23:33:03 UTC 2016
Module: Mesa
Branch: master
Commit: c3b88cc2c15f19e748c9c406e9ab053975adab7e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c3b88cc2c15f19e748c9c406e9ab053975adab7e
Author: Marek Olšák <marek.olsak at amd.com>
Date: Sat Apr 16 13:47:44 2016 +0200
softpipe: fix a warning due to an incorrect enum comparison
no change in behavior, because both are defined the same
Acked-by: Jose Fonseca <jfonseca at vmware.com>
---
src/gallium/drivers/softpipe/sp_image.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/softpipe/sp_image.c b/src/gallium/drivers/softpipe/sp_image.c
index a7c7328..f72c4e7 100644
--- a/src/gallium/drivers/softpipe/sp_image.c
+++ b/src/gallium/drivers/softpipe/sp_image.c
@@ -170,7 +170,7 @@ get_dimensions(const struct pipe_image_view *iview,
*width = u_minify(spr->base.width0, level);
*height = u_minify(spr->base.height0, level);
- if (spr->base.target == TGSI_TEXTURE_3D)
+ if (spr->base.target == PIPE_TEXTURE_3D)
*depth = u_minify(spr->base.depth0, level);
else
*depth = spr->base.array_size;
More information about the mesa-commit
mailing list