[Mesa-dev] [PATCH v1] anv/skylake: disable ForceThreadDispatchEnable
Sergii Romantsov
sergii.romantsov at globallogic.com
Wed Sep 19 15:58:57 UTC 2018
Probably there should be some much more complex conditions for doing that,
but as initial solution...
On Wed, Sep 19, 2018 at 6:55 PM, Sergii Romantsov <
sergii.romantsov at gmail.com> wrote:
> On Skylake enabling of ForceThreadDispatchEnable causes gpu-hang.
>
> CC: Jason Ekstrand <jason.ekstrand at intel.com>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107941
> Fixes: 79270d2140ec (anv: Stop setting 3DSTATE_PS_EXTRA::
> PixelShaderHasUAV)
> Signed-off-by: Sergii Romantsov <sergii.romantsov at globallogic.com>
> ---
> src/intel/vulkan/genX_pipeline.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_
> pipeline.c
> index 9595a71..bf5150d 100644
> --- a/src/intel/vulkan/genX_pipeline.c
> +++ b/src/intel/vulkan/genX_pipeline.c
> @@ -1462,7 +1462,8 @@ emit_3dstate_wm(struct anv_pipeline *pipeline,
> struct anv_subpass *subpass,
> * is 3DSTATE_PS_EXTRA::PixelShaderHasUAV which causes hangs on
> BDW.
> * Given two bad options, we choose the one which works.
> */
> - if ((wm_prog_data->has_side_effects || wm_prog_data->uses_kill)
> &&
> + if (!pipeline->device->info.is_skylake &&
> + (wm_prog_data->has_side_effects || wm_prog_data->uses_kill)
> &&
> !has_color_buffer_write_enabled(pipeline, blend))
> wm.ForceThreadDispatchEnable = ForceON;
> #endif
> --
> 2.7.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
--
Sergii Romantsov
GlobalLogic Inc.
www.globallogic.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180919/67f427a5/attachment.html>
More information about the mesa-dev
mailing list