[virglrenderer-devel] [PATCH 2/6] shader: drop unused sviews_used

Dave Airlie airlied at gmail.com
Wed Jul 18 17:58:06 UTC 2018


From: Dave Airlie <airlied at redhat.com>

---
 src/vrend_shader.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/vrend_shader.c b/src/vrend_shader.c
index cbbfbbc..2e2ddc7 100644
--- a/src/vrend_shader.c
+++ b/src/vrend_shader.c
@@ -136,7 +136,6 @@ struct dump_ctx {
 
    struct vrend_shader_sampler samplers[32];
    uint32_t samplers_used;
-   bool sviews_used;
    struct vrend_sampler_array *sampler_arrays;
    uint32_t num_sampler_arrays;
    int last_sampler_array_idx;
@@ -1040,8 +1039,7 @@ iter_declaration(struct tgsi_iterate_context *iter,
          } else {
             ctx->last_sampler_array_idx = add_sampler_array(ctx, decl->Range.First, decl->Range.Last + 1, decl->SamplerView.Resource, decl->SamplerView.ReturnTypeX);
          }
-      } else
-      ctx->sviews_used = true;
+      }
       break;
    case TGSI_FILE_CONSTANT:
       if (decl->Declaration.Dimension && decl->Dim.Index2D != 0) {
-- 
2.14.3



More information about the virglrenderer-devel mailing list