mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
nir/spirv: Don't multiply the push constant block size by 4
I have no idea why we were multiplying by 4 before. The offsets we get
from SPIR-V are in bytes and so is nir->num_uniforms so there's no need to
do any adjustment whatsoever.
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Cc: "12.0" <mesa-stable@lists.freedesktop.org>
(cherry picked from commit 49476576dd)
This commit is contained in:
parent
605063953d
commit
0aae486a8b
1 changed files with 1 additions and 1 deletions
|
|
@ -1173,7 +1173,7 @@ vtn_handle_variables(struct vtn_builder *b, SpvOp opcode,
|
|||
case SpvStorageClassPushConstant:
|
||||
var->mode = vtn_variable_mode_push_constant;
|
||||
assert(b->shader->num_uniforms == 0);
|
||||
b->shader->num_uniforms = vtn_type_block_size(var->type) * 4;
|
||||
b->shader->num_uniforms = vtn_type_block_size(var->type);
|
||||
break;
|
||||
case SpvStorageClassInput:
|
||||
var->mode = vtn_variable_mode_input;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue