gallium/tgsi: Introduce the compute processor.
This commit is contained in:
@@ -68,7 +68,8 @@ tgsi_scan_shader(const struct tgsi_token *tokens,
|
|||||||
procType = parse.FullHeader.Processor.Processor;
|
procType = parse.FullHeader.Processor.Processor;
|
||||||
assert(procType == TGSI_PROCESSOR_FRAGMENT ||
|
assert(procType == TGSI_PROCESSOR_FRAGMENT ||
|
||||||
procType == TGSI_PROCESSOR_VERTEX ||
|
procType == TGSI_PROCESSOR_VERTEX ||
|
||||||
procType == TGSI_PROCESSOR_GEOMETRY);
|
procType == TGSI_PROCESSOR_GEOMETRY ||
|
||||||
|
procType == TGSI_PROCESSOR_COMPUTE);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -32,11 +32,12 @@
|
|||||||
#include "tgsi_strings.h"
|
#include "tgsi_strings.h"
|
||||||
|
|
||||||
|
|
||||||
const char *tgsi_processor_type_names[3] =
|
const char *tgsi_processor_type_names[4] =
|
||||||
{
|
{
|
||||||
"FRAG",
|
"FRAG",
|
||||||
"VERT",
|
"VERT",
|
||||||
"GEOM"
|
"GEOM",
|
||||||
|
"COMP"
|
||||||
};
|
};
|
||||||
|
|
||||||
const char *tgsi_file_names[TGSI_FILE_COUNT] =
|
const char *tgsi_file_names[TGSI_FILE_COUNT] =
|
||||||
|
@@ -38,7 +38,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
extern const char *tgsi_processor_type_names[3];
|
extern const char *tgsi_processor_type_names[4];
|
||||||
|
|
||||||
extern const char *tgsi_file_names[TGSI_FILE_COUNT];
|
extern const char *tgsi_file_names[TGSI_FILE_COUNT];
|
||||||
|
|
||||||
|
@@ -238,6 +238,8 @@ static boolean parse_header( struct translate_ctx *ctx )
|
|||||||
processor = TGSI_PROCESSOR_VERTEX;
|
processor = TGSI_PROCESSOR_VERTEX;
|
||||||
else if (str_match_no_case( &ctx->cur, "GEOM" ))
|
else if (str_match_no_case( &ctx->cur, "GEOM" ))
|
||||||
processor = TGSI_PROCESSOR_GEOMETRY;
|
processor = TGSI_PROCESSOR_GEOMETRY;
|
||||||
|
else if (str_match_no_case( &ctx->cur, "COMP" ))
|
||||||
|
processor = TGSI_PROCESSOR_COMPUTE;
|
||||||
else {
|
else {
|
||||||
report_error( ctx, "Unknown header" );
|
report_error( ctx, "Unknown header" );
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
@@ -43,6 +43,7 @@ struct tgsi_header
|
|||||||
#define TGSI_PROCESSOR_FRAGMENT 0
|
#define TGSI_PROCESSOR_FRAGMENT 0
|
||||||
#define TGSI_PROCESSOR_VERTEX 1
|
#define TGSI_PROCESSOR_VERTEX 1
|
||||||
#define TGSI_PROCESSOR_GEOMETRY 2
|
#define TGSI_PROCESSOR_GEOMETRY 2
|
||||||
|
#define TGSI_PROCESSOR_COMPUTE 3
|
||||||
|
|
||||||
struct tgsi_processor
|
struct tgsi_processor
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user