compiler/glsl: avoid null-pointer deref
When we encounter a bindless image here, lower_deref returns a NULL-pointer, and calling record_images_used will try to dereference that NULL-pointer.
So let's dig out the var from the source instruction instead of the result of the lowering.
Fixes: 5910c938 ("nir/glsl: gather bitmask of images used by program")
Merge request reports
Activity
added GLSL label
added NIR label
assigned to @marge-bot and unassigned @tpalli
mentioned in commit kusma/mesa@e0e1c364
added 50 commits
-
ef861bed...d03a9fa5 - 49 commits from branch
mesa:master
- e0e1c364 - compiler/glsl: avoid null-pointer deref
-
ef861bed...d03a9fa5 - 49 commits from branch
assigned to @kusma and unassigned @marge-bot
assigned to @marge-bot and unassigned @kusma
mentioned in commit kusma/mesa@89a04a54
added 20 commits
-
e0e1c364...cb580af0 - 19 commits from branch
mesa:master
- 89a04a54 - compiler/glsl: avoid null-pointer deref
-
e0e1c364...cb580af0 - 19 commits from branch
mentioned in commit d30cea2b