lima/ppir: fix lod bias register codegen
The lod bias register is correctly run through the entire compilation process, but in the end its allocated register value was never being added to the instruction. It seems that most programs were lucky enough that lod bias was assigned register 0.x so that things worked anyway. Signed-off-by: Erico Nunes <nunes.erico@gmail.com> Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4535>
This commit is contained in:
@@ -130,7 +130,7 @@ static void ppir_codegen_encode_texld(ppir_node *node, void *code)
|
||||
f->lod_bias_en = ldtex->lod_bias_en;
|
||||
f->explicit_lod = ldtex->explicit_lod;
|
||||
if (ldtex->lod_bias_en)
|
||||
ppir_target_get_src_reg_index(&ldtex->src[1]);
|
||||
f->lod_bias = ppir_target_get_src_reg_index(&ldtex->src[1]);
|
||||
|
||||
switch (ldtex->sampler_dim) {
|
||||
case GLSL_SAMPLER_DIM_2D:
|
||||
|
||||
Reference in New Issue
Block a user