mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-17 03:50:35 +01:00
iris/gfx12: Hook up dual-SIMD8 fragment shader dispatch.
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26585>
This commit is contained in:
parent
ccb5795938
commit
4ec54e84da
2 changed files with 13 additions and 1 deletions
|
|
@ -1966,7 +1966,7 @@ iris_compile_fs(struct iris_screen *screen,
|
|||
.prog_data = fs_prog_data,
|
||||
|
||||
.allow_spilling = true,
|
||||
.max_polygons = 1,
|
||||
.max_polygons = UCHAR_MAX,
|
||||
.vue_map = vue_map,
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -7177,6 +7177,18 @@ iris_upload_dirty_render_state(struct iris_context *ice,
|
|||
wm_prog_data, util_framebuffer_get_num_samples(cso_fb),
|
||||
0 /* msaa_flags */);
|
||||
|
||||
#if GFX_VER == 12
|
||||
assert(wm_prog_data->dispatch_multi == 0 ||
|
||||
(wm_prog_data->dispatch_multi == 16 && wm_prog_data->max_polygons == 2));
|
||||
ps.DualSIMD8DispatchEnable = wm_prog_data->dispatch_multi;
|
||||
/* XXX - No major improvement observed from enabling
|
||||
* overlapping subspans, but it could be helpful
|
||||
* in theory when the requirements listed on the
|
||||
* BSpec page for 3DSTATE_PS_BODY are met.
|
||||
*/
|
||||
ps.OverlappingSubspansEnable = false;
|
||||
#endif
|
||||
|
||||
ps.DispatchGRFStartRegisterForConstantSetupData0 =
|
||||
brw_wm_prog_data_dispatch_grf_start_reg(wm_prog_data, ps, 0);
|
||||
ps.DispatchGRFStartRegisterForConstantSetupData1 =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue