mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
nir/lower_clip_cull: Fix an incorrect assert
Copy+paste error. It was supposed to test cull and not clip. Fixes:4e69fba534"nir: Rewrite lower_clip_cull_distance_arrays..." Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109717 Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> (cherry picked from commitf98fd9d15a)
This commit is contained in:
parent
49dad5e8fe
commit
c0509143ab
1 changed files with 1 additions and 1 deletions
|
|
@ -94,7 +94,7 @@ combine_clip_cull(nir_shader *nir,
|
|||
}
|
||||
|
||||
if (cull) {
|
||||
assert(clip->data.compact);
|
||||
assert(cull->data.compact);
|
||||
cull->data.how_declared = nir_var_hidden;
|
||||
cull->data.location = VARYING_SLOT_CLIP_DIST0 + clip_array_size / 4;
|
||||
cull->data.location_frac = clip_array_size % 4;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue