crocus: Lower load_base_workgroup_id to zero
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20068>
This commit is contained in:
committed by
Marge Bot
parent
4abdecce22
commit
f2aee04d28
@@ -476,6 +476,13 @@ crocus_setup_uniforms(ASSERTED const struct intel_device_info *devinfo,
|
||||
nir_ssa_def *offset;
|
||||
|
||||
switch (intrin->intrinsic) {
|
||||
case nir_intrinsic_load_base_workgroup_id: {
|
||||
/* GL doesn't have a concept of base workgroup */
|
||||
b.cursor = nir_instr_remove(&intrin->instr);
|
||||
nir_ssa_def_rewrite_uses(&intrin->dest.ssa,
|
||||
nir_imm_zero(&b, 3, 32));
|
||||
continue;
|
||||
}
|
||||
case nir_intrinsic_load_constant: {
|
||||
/* This one is special because it reads from the shader constant
|
||||
* data and not cbuf0 which gallium uploads for us.
|
||||
|
||||
Reference in New Issue
Block a user