mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 02:00:12 +01:00
ir2: Stop assuming glsl_get_length() returns 0 for vectors
Signed-off-by: Karol Herbst <git@karolherbst.de> Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22580>
This commit is contained in:
parent
2db20af82e
commit
5db458eb2d
1 changed files with 2 additions and 2 deletions
|
|
@ -789,11 +789,11 @@ static void
|
|||
setup_input(struct ir2_context *ctx, nir_variable *in)
|
||||
{
|
||||
struct fd2_shader_stateobj *so = ctx->so;
|
||||
ASSERTED unsigned array_len = MAX2(glsl_get_length(in->type), 1);
|
||||
unsigned n = in->data.driver_location;
|
||||
unsigned slot = in->data.location;
|
||||
|
||||
assert(array_len == 1);
|
||||
assert(glsl_type_is_vector_or_scalar(in->type) ||
|
||||
glsl_type_is_unsized_array(in->type));
|
||||
|
||||
/* handle later */
|
||||
if (ctx->so->type == MESA_SHADER_VERTEX)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue