[Beignet] [PATCH] Backend: Add gen9 barrier prediction setting
Yang, Rong R
rong.r.yang at intel.com
Tue Nov 24 18:52:16 PST 2015
LGTM, thanks, pushed.
> -----Original Message-----
> From: Beignet [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of
> Pan Xiuli
> Sent: Wednesday, November 25, 2015 9:56
> To: beignet at lists.freedesktop.org
> Cc: Pan, Xiuli
> Subject: [Beignet] [PATCH] Backend: Add gen9 barrier prediction setting
>
> Gen9 have a different context to emit BarrierInst that contains wait
> instruction, and wait instruction need to be no predication.
>
> Signed-off-by: Pan Xiuli <xiuli.pan at intel.com>
> ---
> backend/src/backend/gen9_context.cpp | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/backend/src/backend/gen9_context.cpp
> b/backend/src/backend/gen9_context.cpp
> index 326f5a1..c35293a 100644
> --- a/backend/src/backend/gen9_context.cpp
> +++ b/backend/src/backend/gen9_context.cpp
> @@ -51,6 +51,7 @@ namespace gbe
> p->BARRIER(src);
> p->curr.execWidth = 1;
> // Now we wait for the other threads
> + p->curr.predicate = GEN_PREDICATE_NONE;
> p->WAIT();
> p->pop();
> }
> --
> 2.1.4
>
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/beignet
More information about the Beignet
mailing list