diff options
author | Marek Olšák <[email protected]> | 2016-04-16 13:47:44 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-04-22 01:30:39 +0200 |
commit | c3b88cc2c15f19e748c9c406e9ab053975adab7e (patch) | |
tree | 99777c431c21f127e7d2cfcd6c8c2da3d1b5beb3 | |
parent | c9e5a7df61d92aa5525dcc825bc3c6cb3a60f96b (diff) |
softpipe: fix a warning due to an incorrect enum comparison
no change in behavior, because both are defined the same
Acked-by: Jose Fonseca <[email protected]>
-rw-r--r-- | src/gallium/drivers/softpipe/sp_image.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/softpipe/sp_image.c b/src/gallium/drivers/softpipe/sp_image.c index a7c73280a80..f72c4e71ce4 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; |