Bladeren bron

tgsi: Make tgsi_sanity.c compile with make

tags/mesa_20090313
Jakob Bornecrantz 17 jaren geleden
bovenliggende
commit
ad16ecbbe4
2 gewijzigde bestanden met toevoegingen van 7 en 0 verwijderingen
  1. 1
    0
      src/gallium/auxiliary/tgsi/Makefile
  2. 6
    0
      src/gallium/auxiliary/tgsi/tgsi_sanity.c

+ 1
- 0
src/gallium/auxiliary/tgsi/Makefile Bestand weergeven

@@ -4,6 +4,7 @@ include $(TOP)/configs/current
LIBNAME = tgsi

C_SOURCES = \
tgsi_sanity.c \
tgsi_build.c \
tgsi_dump.c \
tgsi_exec.c \

+ 6
- 0
src/gallium/auxiliary/tgsi/tgsi_sanity.c Bestand weergeven

@@ -152,6 +152,12 @@ check_register_usage(
{
if (!check_file_name( ctx, file ))
return FALSE;

if (index < 0 || index > MAX_REGISTERS) {
report_error( ctx, "%s[%i]: Invalid index %s", file_names[file], index, name );
return FALSE;
}

if (indirect_access) {
if (!is_any_register_declared( ctx, file ))
report_error( ctx, "%s: Undeclared %s register", file_names[file], name );

Laden…
Annuleren
Opslaan