svga: add comment about 'extra' constant locations

Trivial.
This commit is contained in:
Brian Paul 2017-07-13 22:11:46 -06:00
parent c5700ed72e
commit 589f546256
1 changed files with 5 additions and 1 deletions

View File

@ -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) {