aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2017-08-27 00:42:11 +0200
committerNicolai Hähnle <[email protected]>2017-09-04 13:43:46 +0200
commit14241637988973498773407929b15602373739aa (patch)
treeb67c8efaab13a224d6b6558b4ddbcf93bbbeeeab /src/mesa/state_tracker
parenta852ae36207130c7cb9d5f89a671ceaff2b4375e (diff)
st/drawpixels: always use two-dimensional constant references
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_cb_drawpixels_shader.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_drawpixels_shader.c b/src/mesa/state_tracker/st_cb_drawpixels_shader.c
index 35a9da0643d..83dcfeab4da 100644
--- a/src/mesa/state_tracker/st_cb_drawpixels_shader.c
+++ b/src/mesa/state_tracker/st_cb_drawpixels_shader.c
@@ -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;
}
}