mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 10:30:08 +01:00
st/nir: fix arb fragment stage conversion
The comment even justifies the wrongness wrongly.
We should be translating to pipe values properly here or else
fragment maps to tess ctrl.
Fixes: 3d7611e9a6 ("st/nir: use NIR for asm programs")
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
cb9eb1834d
commit
365f24705f
1 changed files with 1 additions and 1 deletions
|
|
@ -428,7 +428,7 @@ static nir_shader *
|
|||
st_translate_prog_to_nir(struct st_context *st, struct gl_program *prog,
|
||||
gl_shader_stage stage)
|
||||
{
|
||||
enum pipe_shader_type p_stage = stage; /* valid for VS/FS */
|
||||
enum pipe_shader_type p_stage = pipe_shader_type_from_mesa(stage);
|
||||
const bool is_scalar =
|
||||
st->pipe->screen->get_shader_param(st->pipe->screen, p_stage,
|
||||
PIPE_SHADER_CAP_SCALAR_ISA);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue