diff --git a/.pick_status.json b/.pick_status.json index 4330dbfd8e3..32a77c13799 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -904,7 +904,7 @@ "description": "intel/fs: fix per vertex input clamping", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "e25e17dd0c39675acd48fd4a6982fcd77530ef2c" }, diff --git a/src/intel/compiler/brw_vec4_tcs.cpp b/src/intel/compiler/brw_vec4_tcs.cpp index d0dcaff8ecc..90591afa454 100644 --- a/src/intel/compiler/brw_vec4_tcs.cpp +++ b/src/intel/compiler/brw_vec4_tcs.cpp @@ -365,8 +365,6 @@ brw_compile_tcs(const struct brw_compiler *compiler, const bool debug_enabled = INTEL_DEBUG(DEBUG_TCS); const unsigned *assembly; - brw_nir_clamp_per_vertex_loads(nir, key->input_vertices); - vue_prog_data->base.stage = MESA_SHADER_TESS_CTRL; prog_data->base.base.ray_queries = nir->info.ray_queries; prog_data->base.base.total_scratch = 0; @@ -387,6 +385,8 @@ brw_compile_tcs(const struct brw_compiler *compiler, key->_tes_primitive_mode); if (key->quads_workaround) brw_nir_apply_tcs_quads_workaround(nir); + if (compiler->use_tcs_multi_patch) + brw_nir_clamp_per_vertex_loads(nir, key->input_vertices); brw_postprocess_nir(nir, compiler, is_scalar, debug_enabled, key->base.robust_buffer_access);