gallium: add threads per block TGSI property

The value 0 for unknown has been chosen to so that
drivers using tgsi_scan_shader do not need to detect
missing properties if they zero-initialize the struct.

Signed-off-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
Bas Nieuwenhuizen
2016-03-28 02:40:03 +02:00
parent ea8f4a6b13
commit 01f993a21f
4 changed files with 31 additions and 1 deletions

View File

@@ -276,7 +276,10 @@ union tgsi_immediate_data
#define TGSI_PROPERTY_NUM_CULLDIST_ENABLED 16
#define TGSI_PROPERTY_FS_EARLY_DEPTH_STENCIL 17
#define TGSI_PROPERTY_NEXT_SHADER 18
#define TGSI_PROPERTY_COUNT 19
#define TGSI_PROPERTY_CS_FIXED_BLOCK_WIDTH 19
#define TGSI_PROPERTY_CS_FIXED_BLOCK_HEIGHT 20
#define TGSI_PROPERTY_CS_FIXED_BLOCK_DEPTH 21
#define TGSI_PROPERTY_COUNT 22
struct tgsi_property {
unsigned Type : 4; /**< TGSI_TOKEN_TYPE_PROPERTY */