Skip to content
Snippets Groups Projects
Commit 89a04a54 authored by Erik Faye-Lund's avatar Erik Faye-Lund Committed by Marge Bot
Browse files

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")
Reviewed-by: default avatarTapani Pälli <tapani.palli@intel.com>
Part-of: <mesa/mesa!9895>
parent cb580af0
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment