mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 06:40:08 +01:00
svga: fix constant indices for texcoord scale factors and texture buffer size
This patch fixes the ordering of the constant indices for texcoord scale factor and texture buffer size to match the order they were added to the constant buffer in svga_get_extra_constants_common(). Tested with MTT piglit, glretrace. Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
acfb1583a5
commit
83ca6b9d31
1 changed files with 7 additions and 10 deletions
|
|
@ -2881,17 +2881,14 @@ emit_constant_declaration(struct svga_shader_emitter_v10 *emit)
|
|||
}
|
||||
}
|
||||
|
||||
/* Texcoord scale factors for RECT textures */
|
||||
{
|
||||
for (i = 0; i < emit->num_samplers; i++) {
|
||||
if (emit->key.tex[i].unnormalized) {
|
||||
emit->texcoord_scale_index[i] = total_consts++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Texture buffer sizes */
|
||||
for (i = 0; i < emit->num_samplers; i++) {
|
||||
|
||||
/* Texcoord scale factors for RECT textures */
|
||||
if (emit->key.tex[i].unnormalized) {
|
||||
emit->texcoord_scale_index[i] = total_consts++;
|
||||
}
|
||||
|
||||
/* Texture buffer sizes */
|
||||
if (emit->sampler_target[i] == TGSI_TEXTURE_BUFFER) {
|
||||
emit->texture_buffer_size_index[i] = total_consts++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue