st/drawpixels: always use two-dimensional constant references
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Sat, 26 Aug 2017 22:42:11 +0000 (00:42 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 4 Sep 2017 11:43:46 +0000 (13:43 +0200)
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mesa/state_tracker/st_cb_drawpixels_shader.c

index 35a9da0643df891bdc4b93f55f8806e9477a2eaf..83dcfeab4dafc91fe34b8680044bf9a749a68500 100644 (file)
@@ -204,6 +204,8 @@ transform_inst:
                  ctx->info.input_semantic_index[reg] == 0) {
          src->Register.File = TGSI_FILE_CONSTANT;
          src->Register.Index = ctx->texcoord_const;
+         src->Register.Dimension = 1;
+         src->Dimension.Index = 0;
       }
    }