anv/brw: move sample_shading_enable to wm_prog_data
The vulkan runtime doesn´t store this parameter in the dynamic state (since it's not a dynamic state). Just capture it at compile time and leave on the wm_prog_data. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36665>
This commit is contained in:
committed by
Marge Bot
parent
f2696b441d
commit
6d863fda2d
@@ -767,7 +767,6 @@ void anv_CmdBindPipeline(
|
||||
cmd_buffer->state.gfx.vs_source_hash = new_pipeline->vs_source_hash;
|
||||
cmd_buffer->state.gfx.fs_source_hash = new_pipeline->fs_source_hash;
|
||||
|
||||
cmd_buffer->state.gfx.sample_shading_enable = new_pipeline->sample_shading_enable;
|
||||
cmd_buffer->state.gfx.instance_multiplier = new_pipeline->instance_multiplier;
|
||||
cmd_buffer->state.gfx.primitive_id_index = new_pipeline->primitive_id_index;
|
||||
cmd_buffer->state.gfx.first_vue_slot = new_pipeline->first_vue_slot;
|
||||
|
||||
@@ -564,6 +564,7 @@ populate_wm_prog_key(struct anv_pipeline_stage *stage,
|
||||
|
||||
key->mesh_input = is_mesh;
|
||||
|
||||
key->api_sample_shading = ms ? ms->sample_shading_enable : false;
|
||||
key->min_sample_shading = ms ? ms->min_sample_shading : 1.0f;
|
||||
|
||||
/* Vulkan doesn't support fixed-function alpha test */
|
||||
@@ -2920,9 +2921,6 @@ anv_graphics_pipeline_emit(struct anv_graphics_pipeline *pipeline,
|
||||
/* TODO(mesh): Mesh vs. Multiview with Instancing. */
|
||||
}
|
||||
|
||||
if (pipeline->base.shaders[MESA_SHADER_FRAGMENT] && state->ms)
|
||||
pipeline->sample_shading_enable = state->ms->sample_shading_enable;
|
||||
|
||||
/* Mark all color output as unused by default */
|
||||
memset(pipeline->color_output_mapping,
|
||||
ANV_COLOR_OUTPUT_UNUSED,
|
||||
|
||||
@@ -4122,7 +4122,6 @@ struct anv_cmd_graphics_state {
|
||||
|
||||
bool kill_pixel;
|
||||
bool uses_xfb;
|
||||
bool sample_shading_enable;
|
||||
uint32_t primitive_id_index;
|
||||
uint32_t first_vue_slot;
|
||||
|
||||
@@ -5094,7 +5093,6 @@ struct anv_graphics_pipeline {
|
||||
|
||||
bool kill_pixel;
|
||||
bool uses_xfb;
|
||||
bool sample_shading_enable;
|
||||
|
||||
/* Number of VERTEX_ELEMENT_STATE input elements used by the shader */
|
||||
uint32_t vs_input_elements;
|
||||
|
||||
@@ -842,7 +842,7 @@ update_fs_msaa_flags(struct anv_gfx_dynamic_state *hw_state,
|
||||
intel_fs_msaa_flags((struct intel_fs_params) {
|
||||
.shader_sample_shading = wm_prog_data->sample_shading,
|
||||
.shader_min_sample_shading = wm_prog_data->min_sample_shading,
|
||||
.state_sample_shading = gfx->sample_shading_enable,
|
||||
.state_sample_shading = wm_prog_data->api_sample_shading,
|
||||
.rasterization_samples = dyn->ms.rasterization_samples,
|
||||
.coarse_pixel = !vk_fragment_shading_rate_is_disabled(&dyn->fsr),
|
||||
.alpha_to_coverage = dyn->ms.alpha_to_coverage_enable,
|
||||
|
||||
Reference in New Issue
Block a user