r600/sfn: lower intrinsic_load_tess_coord to driver version

Fixes
  KHR-GL45.tessellation_shader.tessellation_shader_tessellation.TCS_TES
  KHR-GL45.tessellation_shader.tessellation_shader_tessellation.TES

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9373>
This commit is contained in:
Gert Wollny
2021-03-02 20:23:59 +01:00
committed by Marge Bot
parent 81b41e0c76
commit e148d5ec99
4 changed files with 41 additions and 15 deletions

View File

@@ -962,6 +962,10 @@ int r600_shader_from_nir(struct r600_context *rctx,
NIR_PASS_V(sh, r600_append_tcs_TF_emission,
(pipe_prim_type)key->tcs.prim_mode);
if (sh->info.stage == MESA_SHADER_TESS_EVAL)
NIR_PASS_V(sh, r600_lower_tess_coord,
static_cast<pipe_prim_type>(sh->info.tess.primitive_mode));
NIR_PASS_V(sh, nir_lower_ubo_vec4);
if (lower_64bit)
NIR_PASS_V(sh, r600::r600_nir_64_to_vec2);