OSDN Git Service

i965/cs: Initialize GPGPU Thread Count
authorJordan Justen <jordan.l.justen@intel.com>
Fri, 12 Jun 2015 02:17:03 +0000 (19:17 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Tue, 14 Jul 2015 21:44:48 +0000 (14:44 -0700)
commit320089dbd63de3ac1bd3d42ee8cec41837486d8c
treec283e313a874a402190388e1a33cf5ad76331a26
parentcd7dd45bfec9ad68719c5e4e04b66ea4bcc1a2c1
i965/cs: Initialize GPGPU Thread Count

This field should always be set for gen8. In the bdw PRM, Volume 2d:
Command Reference: Structures under INTERFACE_DESCRIPTOR_DATA, DWORD
6, Bits 9:0, Number of Threads in GPGPU Thread Group:

"This field should not be set to 0 even if the barrier is disabled,
since an accurate value is needed for proper pre-emption."

In the HSW PRM, the it doesn't mention that it must always be set, but
it should not hurt.

Reported-by: Kristian Høgsberg <krh@bitplanet.net>
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
src/mesa/drivers/dri/i965/brw_cs.cpp
src/mesa/drivers/dri/i965/brw_defines.h