OSDN Git Service

softpipe: fix a warning due to an incorrect enum comparison
authorMarek Olšák <marek.olsak@amd.com>
Sat, 16 Apr 2016 11:47:44 +0000 (13:47 +0200)
committerMarek 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

index a7c7328..f72c4e7 100644 (file)
@@ -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;