Skip to content

radeonsi: enable vrs2x2 coarse shading if flat shading

Yogesh Mohan Marmithu requested to merge yogeshmohan/mesa:vrs2x2_if_flat into master

Enable vrs2x2 coarse shading if flat shading as per idea and guidance given by Marek.

is_flat_shading variable in struct si_shader_info is set based on the data from gather_intrinsic_info() function and struct si_state_rasterizer. If is_flat_shading_variable is set, then in function si_emit_db_render_state() vrs2x2 shading is enabled in hardware.

Signed-off-by: Yogesh Mohan Marimuthu yogesh.mohanmarimuthu@amd.com

Merge request reports