mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 19:50:11 +01:00
radv: fix regression with mask attrib setting code.
Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
2b35b60df1
commit
aa27a9f687
1 changed files with 3 additions and 3 deletions
|
|
@ -4181,6 +4181,7 @@ handle_shader_output_decl(struct nir_to_llvm_context *ctx,
|
|||
unsigned mask_attribs;
|
||||
variable->data.driver_location = idx * 4;
|
||||
|
||||
mask_attribs = ((1ull << attrib_count) - 1) << idx;
|
||||
if (ctx->stage == MESA_SHADER_VERTEX ||
|
||||
ctx->stage == MESA_SHADER_GEOMETRY) {
|
||||
if (idx == VARYING_SLOT_CLIP_DIST0) {
|
||||
|
|
@ -4194,10 +4195,9 @@ handle_shader_output_decl(struct nir_to_llvm_context *ctx,
|
|||
attrib_count = 2;
|
||||
else
|
||||
attrib_count = 1;
|
||||
mask_attribs = 1 << idx;
|
||||
}
|
||||
mask_attribs = 1 << idx;
|
||||
} else
|
||||
mask_attribs = ((1ull << attrib_count) - 1) << idx;
|
||||
}
|
||||
|
||||
for (unsigned i = 0; i < attrib_count; ++i) {
|
||||
for (unsigned chan = 0; chan < 4; chan++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue