mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 19:30:11 +01:00
i965: Return progress from brw_nir_lower_uniforms().
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
ef71af7356
commit
e0f8daeb86
1 changed files with 3 additions and 3 deletions
|
|
@ -47,17 +47,17 @@
|
|||
#include "brw_defines.h"
|
||||
#include "intel_batchbuffer.h"
|
||||
|
||||
static void
|
||||
static bool
|
||||
brw_nir_lower_uniforms(nir_shader *nir, bool is_scalar)
|
||||
{
|
||||
if (is_scalar) {
|
||||
nir_assign_var_locations(&nir->uniforms, &nir->num_uniforms,
|
||||
type_size_scalar_bytes);
|
||||
nir_lower_io(nir, nir_var_uniform, type_size_scalar_bytes, 0);
|
||||
return nir_lower_io(nir, nir_var_uniform, type_size_scalar_bytes, 0);
|
||||
} else {
|
||||
nir_assign_var_locations(&nir->uniforms, &nir->num_uniforms,
|
||||
type_size_vec4_bytes);
|
||||
nir_lower_io(nir, nir_var_uniform, type_size_vec4_bytes, 0);
|
||||
return nir_lower_io(nir, nir_var_uniform, type_size_vec4_bytes, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue