projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9e5a7d
)
softpipe: fix a warning due to an incorrect enum comparison
author
Marek Olšák
<marek.olsak@amd.com>
Sat, 16 Apr 2016 11:47:44 +0000
(13:47 +0200)
committer
Marek Olšák
<marek.olsak@amd.com>
Thu, 21 Apr 2016 23:30:39 +0000
(
01:30
+0200)
no change in behavior, because both are defined the same
Acked-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/drivers/softpipe/sp_image.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/softpipe/sp_image.c
b/src/gallium/drivers/softpipe/sp_image.c
index a7c73280a80a87937e7212cbf2fd29fc96342417..f72c4e71ce4ff13042d30ea45de88cd7d4c4daa8 100644
(file)
--- 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;