summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2019-07-23 10:40:05 +1000
committerDave Airlie <[email protected]>2019-07-23 11:00:53 +1000
commit365f24705f9703962b6749f4fafe7cd92d9c60b1 (patch)
treecdd51ae228716603c62afca3e61e231ea7fe59c5
parentcb9eb1834d8fee07d15c407829923d8b074c89ec (diff)
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: 3d7611e9a6c ("st/nir: use NIR for asm programs") Reviewed-by: Timothy Arceri <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
-rw-r--r--src/mesa/state_tracker/st_program.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_program.c b/src/mesa/state_tracker/st_program.c
index faada1621ca..7d1ed5634eb 100644
--- a/src/mesa/state_tracker/st_program.c
+++ b/src/mesa/state_tracker/st_program.c
@@ -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);