From 14241637988973498773407929b15602373739aa Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nicolai=20H=C3=A4hnle?= Date: Sun, 27 Aug 2017 00:42:11 +0200 Subject: [PATCH] st/drawpixels: always use two-dimensional constant references Reviewed-by: Timothy Arceri --- src/mesa/state_tracker/st_cb_drawpixels_shader.c | 2 ++ 1 file changed, 2 insertions(+) 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; } } -- 2.30.2