mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-05 02:30:18 +01:00
radv: fix mask attribs properly.
some days it just doesn't pay to get out of bed. Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
aa27a9f687
commit
a930c2c612
1 changed files with 2 additions and 2 deletions
|
|
@ -4178,7 +4178,7 @@ handle_shader_output_decl(struct nir_to_llvm_context *ctx,
|
|||
{
|
||||
int idx = variable->data.location + variable->data.index;
|
||||
unsigned attrib_count = glsl_count_attribute_slots(variable->type, false);
|
||||
unsigned mask_attribs;
|
||||
uint64_t mask_attribs;
|
||||
variable->data.driver_location = idx * 4;
|
||||
|
||||
mask_attribs = ((1ull << attrib_count) - 1) << idx;
|
||||
|
|
@ -4195,7 +4195,7 @@ handle_shader_output_decl(struct nir_to_llvm_context *ctx,
|
|||
attrib_count = 2;
|
||||
else
|
||||
attrib_count = 1;
|
||||
mask_attribs = 1 << idx;
|
||||
mask_attribs = 1ull << idx;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue