nir/inline_uniforms: Handle num_components > 1
Vulkan UBO loads can have a buffer_index source with more than one component. Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23016>
This commit is contained in:

committed by
Marge Bot

parent
723922b6f1
commit
7b52dcff52
@@ -126,7 +126,7 @@ nir_collect_src_uniforms(const nir_src *src, int component,
|
||||
* offset.
|
||||
*/
|
||||
if (intr->intrinsic == nir_intrinsic_load_ubo &&
|
||||
nir_src_is_const(intr->src[0]) &&
|
||||
nir_src_is_const(intr->src[0]) && nir_src_num_components(intr->src[0]) == 1 &&
|
||||
nir_src_as_uint(intr->src[0]) < max_num_bo &&
|
||||
nir_src_is_const(intr->src[1]) &&
|
||||
nir_src_as_uint(intr->src[1]) <= max_offset &&
|
||||
|
Reference in New Issue
Block a user