mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-24 10:20:22 +01:00
tgsi: add semantic_names[] string for TGSI_SEMANTIC_FACE
Fixes TGSI dump output when front/back-face register is declared. Also, add some assertions to make sure the semantic/interpolate string arrays have as many elements as there are tokens in the p_shader_tokens.h file. That should catch problems like this in the future.
This commit is contained in:
parent
762c1d11ff
commit
f01af4dbd2
1 changed files with 6 additions and 1 deletions
|
|
@ -28,6 +28,7 @@
|
|||
#include "util/u_debug.h"
|
||||
#include "util/u_string.h"
|
||||
#include "util/u_math.h"
|
||||
#include "util/u_memory.h"
|
||||
#include "tgsi_dump.h"
|
||||
#include "tgsi_info.h"
|
||||
#include "tgsi_iterate.h"
|
||||
|
|
@ -108,7 +109,8 @@ static const char *semantic_names[] =
|
|||
"FOG",
|
||||
"PSIZE",
|
||||
"GENERIC",
|
||||
"NORMAL"
|
||||
"NORMAL",
|
||||
"FACE"
|
||||
};
|
||||
|
||||
static const char *immediate_type_names[] =
|
||||
|
|
@ -224,6 +226,9 @@ iter_declaration(
|
|||
{
|
||||
struct dump_ctx *ctx = (struct dump_ctx *)iter;
|
||||
|
||||
assert(Elements(semantic_names) == TGSI_SEMANTIC_COUNT);
|
||||
assert(Elements(interpolate_names) == TGSI_INTERPOLATE_COUNT);
|
||||
|
||||
TXT( "DCL " );
|
||||
|
||||
_dump_register(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue