Skip to content
Commit 229c4abd authored by Emma Anholt's avatar Emma Anholt Committed by Dylan Baker
Browse files

nir: Fix deref offset calculation for structs.



We were calcuating the offset for the field within the struct, and just
dropping it on the floor.  Fixes a regression in
KHR-GLES3.shaders.struct.local.nested_struct_array_dynamic_index_fragment
and a few of its friends since the scratch lowering commit.

Fixes: e8e159e9 ("nir/deref: Add helpers for getting offsets")
Reviewed-by: default avatarJason Ekstrand <jason@jlekstrand.net>
(cherry picked from commit 9ac5ec2f)
parent b5ea4378
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment