tgsi: Declare a LOOP register.

The only valid usage for LOOP/ENDLOOP instructions
is LOOP[0] as a destination register.
The only valid usage for the remaining instructions
is LOOP[0].x as an indirect register.
This commit is contained in:
Michal Krol
2009-07-30 10:34:06 +02:00
parent 65fb2c52f9
commit cf8907018e
5 changed files with 12 additions and 7 deletions

View File

@@ -82,7 +82,7 @@ static const char *processor_type_names[] =
"GEOM" "GEOM"
}; };
static const char *file_names[] = static const char *file_names[TGSI_FILE_COUNT] =
{ {
"NULL", "NULL",
"CONST", "CONST",
@@ -91,7 +91,8 @@ static const char *file_names[] =
"TEMP", "TEMP",
"SAMP", "SAMP",
"ADDR", "ADDR",
"IMM" "IMM",
"LOOP"
}; };
static const char *interpolate_names[] = static const char *interpolate_names[] =

View File

@@ -69,7 +69,7 @@ static const char *TGSI_TOKEN_TYPES[] =
"TOKEN_TYPE_INSTRUCTION" "TOKEN_TYPE_INSTRUCTION"
}; };
static const char *TGSI_FILES[] = static const char *TGSI_FILES[TGSI_FILE_COUNT] =
{ {
"FILE_NULL", "FILE_NULL",
"FILE_CONSTANT", "FILE_CONSTANT",
@@ -78,7 +78,8 @@ static const char *TGSI_FILES[] =
"FILE_TEMPORARY", "FILE_TEMPORARY",
"FILE_SAMPLER", "FILE_SAMPLER",
"FILE_ADDRESS", "FILE_ADDRESS",
"FILE_IMMEDIATE" "FILE_IMMEDIATE",
"FILE_LOOP"
}; };
static const char *TGSI_INTERPOLATES[] = static const char *TGSI_INTERPOLATES[] =

View File

@@ -131,7 +131,7 @@ is_register_used(
return (ctx->regs_used[file][index / BITS_IN_REG_FLAG] & (1 << (index % BITS_IN_REG_FLAG))) ? TRUE : FALSE; return (ctx->regs_used[file][index / BITS_IN_REG_FLAG] & (1 << (index % BITS_IN_REG_FLAG))) ? TRUE : FALSE;
} }
static const char *file_names[] = static const char *file_names[TGSI_FILE_COUNT] =
{ {
"NULL", "NULL",
"CONST", "CONST",
@@ -140,7 +140,8 @@ static const char *file_names[] =
"TEMP", "TEMP",
"SAMP", "SAMP",
"ADDR", "ADDR",
"IMM" "IMM",
"LOOP"
}; };
static boolean static boolean

View File

@@ -231,7 +231,8 @@ static const char *file_names[TGSI_FILE_COUNT] =
"TEMP", "TEMP",
"SAMP", "SAMP",
"ADDR", "ADDR",
"IMM" "IMM",
"LOOP"
}; };
static boolean static boolean

View File

@@ -78,6 +78,7 @@ enum tgsi_file_type {
TGSI_FILE_SAMPLER =5, TGSI_FILE_SAMPLER =5,
TGSI_FILE_ADDRESS =6, TGSI_FILE_ADDRESS =6,
TGSI_FILE_IMMEDIATE =7, TGSI_FILE_IMMEDIATE =7,
TGSI_FILE_LOOP =8,
TGSI_FILE_COUNT /**< how many TGSI_FILE_ types */ TGSI_FILE_COUNT /**< how many TGSI_FILE_ types */
}; };