diff options
author | Samuel Pitoiset <[email protected]> | 2020-05-26 13:54:34 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2020-06-15 17:02:53 +0200 |
commit | 9b6a8d17424ac5fa11ccf44c02da2a237088cb76 (patch) | |
tree | f3652929acbb93cb3e063f8576226c62b6aab241 /src/gallium | |
parent | 277b6169625f7c03c89add2857e565b9765c0c1f (diff) |
spirv: fix using OpSampledImage with OpUndef instead of OpType{Image,Sampler}
This seems valid per the SPIR-V spec to use OpSampledImage with
OpUndef instead of OpTypeImage or OpTypeSampler. When the image
operand is undefined, SPIRV->NIR emits an undef instruction that
can be removed later by the compiler.
This fixes shader compilation crashes with Red Dead Redemption II.
Cc: [email protected]>
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5230>
Diffstat (limited to 'src/gallium')
0 files changed, 0 insertions, 0 deletions