Mesa (master): svga: add comment about 'extra' constant locations

Brian Paul brianp at kemper.freedesktop.org
Mon Jul 17 16:08:47 UTC 2017


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

Author: Brian Paul <brianp at vmware.com>
Date:   Thu Jul 13 22:11:46 2017 -0600

svga: add comment about 'extra' constant locations

Trivial.

---

 src/gallium/drivers/svga/svga_tgsi_vgpu10.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/svga/svga_tgsi_vgpu10.c b/src/gallium/drivers/svga/svga_tgsi_vgpu10.c
index 96269cb872..c7a1336d07 100644
--- a/src/gallium/drivers/svga/svga_tgsi_vgpu10.c
+++ b/src/gallium/drivers/svga/svga_tgsi_vgpu10.c
@@ -2853,7 +2853,11 @@ emit_constant_declaration(struct svga_shader_emitter_v10 *emit)
     */
    total_consts = emit->num_shader_consts[0];
 
-   /* Now, allocate constant slots for the "extra" constants */
+   /* Now, allocate constant slots for the "extra" constants.
+    * Note: it's critical that these extra constant locations
+    * exactly match what's emitted by the "extra" constants code
+    * in svga_state_constants.c
+    */
 
    /* Vertex position scale/translation */
    if (emit->vposition.need_prescale) {




More information about the mesa-commit mailing list