Module: Mesa
Branch: master
Commit: 14241637988973498773407929b15602373739aa
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=14241637988973498773407929b15602373739aa

Author: Nicolai Hähnle <[email protected]>
Date:   Sun Aug 27 00:42:11 2017 +0200

st/drawpixels: always use two-dimensional constant references

Reviewed-by: Timothy Arceri <[email protected]>

---

 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 35a9da0643..83dcfeab4d 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;
       }
    }
 

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to