History log of /external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
bd25bc66bde20c297e8bae373f371eb1a372c3a4 10-Feb-2017 Dave Airlie <airlied@redhat.com> tgsi: fix memory leak in tgsi sanity check

This just fixes this without repeating the code.

Reported-by: Li Qiang
Cc: "17.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
(cherry picked from commit 69fc7a2c828adbb454072d386a26b568e56dd886)
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
af249a7da9bf2621ab836d5074ef692677b11bbf 16-Apr-2016 Marek Olšák <marek.olsak@amd.com> gallium: use PIPE_SHADER_* everywhere, remove TGSI_PROCESSOR_*

Acked-by: Jose Fonseca <jfonseca@vmware.com>
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
150c289f6067cb1ba4572f9124948a94ef94c839 04-Dec-2015 Edward O'Callaghan <eocallaghan@alterapraxis.com> gallium/auxiliary: Sanitize NULL checks into canonical form

Use NULL tests of the form `if (ptr)' or `if (!ptr)'.
They do not depend on the definition of the symbol NULL.
Further, they provide the opportunity for the accidental
assignment, are clear and succinct.

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
a2a1a5805fd617e7f3cc8be44dd79b50da07ebb9 21-Jul-2015 Ilia Mirkin <imirkin@alum.mit.edu> gallium: replace INLINE with inline

Generated by running:
git grep -l INLINE src/gallium/ | xargs sed -i 's/\bINLINE\b/inline/g'
git grep -l INLINE src/mesa/state_tracker/ | xargs sed -i 's/\bINLINE\b/inline/g'
git checkout src/gallium/state_trackers/clover/Doxyfile

and manual edits to
src/gallium/include/pipe/p_compiler.h
src/gallium/README.portability

to remove mentions of the inline define.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Acked-by: Marek Olšák <marek.olsak@amd.com>
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
0d84b6cf84971f3378bb95c85f7d39e0c6680b8f 18-May-2015 Marek Olšák <marek.olsak@amd.com> gallium: rename TGSI tessellation processor types to match pipe shader names

I forgot to do this when pushing the interface changes.

Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
93c940736f03b3eaf53d3a5703963b87a506747e 13-Jul-2014 Ilia Mirkin <imirkin@alum.mit.edu> tgsi/sanity: set implicit in/out array sizes based on patch sizes

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
877128505431adaf817dc8069172ebe4a1cdf5d8 17-Jan-2014 José Fonseca <jfonseca@vmware.com> s/Tungsten Graphics/VMware/

Tungsten Graphics Inc. was acquired by VMware Inc. in 2008. Leaving the
old copyright name is creating unnecessary confusion, hence this change.

This was the sed script I used:

$ cat tg2vmw.sed
# Run as:
#
# git reset --hard HEAD && find include scons src -type f -not -name 'sed*' -print0 | xargs -0 sed -i -f tg2vmw.sed
#

# Rename copyrights
s/Tungsten Gra\(ph\|hp\)ics,\? [iI]nc\.\?\(, Cedar Park\)\?\(, Austin\)\?\(, \(Texas\|TX\)\)\?\.\?/VMware, Inc./g
/Copyright/s/Tungsten Graphics\(,\? [iI]nc\.\)\?\(, Cedar Park\)\?\(, Austin\)\?\(, \(Texas\|TX\)\)\?\.\?/VMware, Inc./
s/TUNGSTEN GRAPHICS/VMWARE/g

# Rename emails
s/alanh@tungstengraphics.com/alanh@vmware.com/
s/jens@tungstengraphics.com/jowen@vmware.com/g
s/jrfonseca-at-tungstengraphics-dot-com/jfonseca-at-vmware-dot-com/
s/jrfonseca\?@tungstengraphics.com/jfonseca@vmware.com/g
s/keithw\?@tungstengraphics.com/keithw@vmware.com/g
s/michel@tungstengraphics.com/daenzer@vmware.com/g
s/thomas-at-tungstengraphics-dot-com/thellstom-at-vmware-dot-com/
s/zack@tungstengraphics.com/zackr@vmware.com/

# Remove dead links
s@Tungsten Graphics (http://www.tungstengraphics.com)@Tungsten Graphics@g

# C string src/gallium/state_trackers/vega/api_misc.c
s/"Tungsten Graphics, Inc"/"VMware, Inc"/

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
d3e07bed90d6b94ac37a7f48417bf8962408fa47 07-Mar-2013 Christian König <christian.koenig@amd.com> tgsi: remove TGSI_FILE_(IMMEDIATE|TEMP)_ARRAY

Nobody seems to be using it, and only nv50 had a partial implementation.

Signed-off-by: Christian König <christian.koenig@amd.com>
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
bdbe77f9c6f06cfaa155f27c2ade3c523d7fbea7 24-Jan-2011 Zack Rusin <zackr@vmware.com> gallium: implement modern sampling scheme

largely a merge of the previously discussed origin/gallium-resource-sampling
but updated.
the idea is to allow arbitrary binding of resources, the way opencl, new gl
versions and dx10+ require, i.e.
DCL RES[0], 2D, FLOAT

LOAD DST[0], SRC[0], RES[0]
SAMPLE DST[0], SRC[0], RES[0], SAMP[0]
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
7f5202be63c6dc639e57d11ef8253e79dd349f59 15-Aug-2010 Jakob Bornecrantz <wallbraker@gmail.com> gallium: Make printing info on debug builds default off

This commit silences the printing off most of the debug information
when running debug builds. The big culprits are: the tgsi sanity checker
that gets run on all shaders on debug; all the options; and
finaly the cpu caps printer.
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
14e9fbee1cef281c6849a5f2a6d2cc66bfd4b3fd 06-Aug-2010 Brian Paul <brianp@vmware.com> gallium: remove stray semicolons
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
1a3a04d56b01714e4fa19aa7efcdae4b6644af46 06-Aug-2010 Jakob Bornecrantz <jakob@vmware.com> tgsi: Fix typo, so we follow what is in the comments
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
9f5c1194ff0ff69be5d7641d68169b152bc6cd0a 06-Aug-2010 Jakob Bornecrantz <jakob@vmware.com> tgsi: Add option to stop the sanity checker from printing
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
101f792a2af9c9a19a050afba8b60caa689466a5 18-Jun-2010 Zack Rusin <zackr@vmware.com> gallium: add a temporary array register file

like normal temporaries, but allows to define a number of distinct
arrays, all of which make it explicit that they contain /indexable/
registers.
as a side-effect we're adding support for multi-dimensional destination
registers.
The whole thing looks like this:
DCL TEMPX[0][0..128] # 0 array with 128 registers

ADD TEMPX[0][0], IN[0], IMM[0]
ADD TEMPX[0][1], IN[0], IMM[0]
ABS OUT[0], TEMPX[0][TEMP[0]]
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
2b221e11da7a8bf759e3c359f22ba6f49d5f0997 18-Jun-2010 Zack Rusin <zackr@vmware.com> gallium: add a new register file - immediate array

allows one to specify a safe (bound checked) array
filled with immediates. it works just like a const
array and declares much like our current immediates.
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
23969670387bc0bb7d0761936905e5eb4df963dc 11-Jun-2010 Zack Rusin <zack@kde.org> tgsi: support 2d indirect addressing
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
d288698a76e2ad8408d303570578856a05ea96d0 03-May-2010 José Fonseca <jfonseca@vmware.com> gallium: Remove loop register file.

It was only used for D3D's REP/END/BGNFOR/ENDFOR. D3D's aL register is
just like another address register now.
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
73e1405de0277bab2d617742ff5a764467e32899 27-Apr-2010 José Fonseca <jfonseca@vmware.com> tgsi: Drop BGNFOR, ENDFOR, REP, and ENDREP opcodes.
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
28e80aa0b85aac3ed3d34ee13b6412be4d9d5773 22-Feb-2010 José Fonseca <jfonseca@vmware.com> tgsi: Report an error when a destination has an empty writemask.
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
4367de152cc5bd7240d75a33e75c1b1671b5cc16 19-Jan-2010 Michal Krol <michal@vmware.com> tgsi: Handle 2-D declarations.
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
7472cd0f1f0f8284729274bc5c453d59d9ab4b55 18-Jan-2010 Michal Krol <michal@vmware.com> tgsi: Fix behaviour of dimension index.

The dimension index always addresses the second-dimension axis.
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
463351ea6c953c3db7f135ba97160a212562daef 18-Jan-2010 Michal Krol <michal@vmware.com> tgsi: Allow TEMPORARY registers as indirect address into source operands.
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
d1767bfdabac4fd1eedb1ad9ddea368e077725c6 15-Jan-2010 Michal Krol <michal@vmware.com> tgsi: Fix sanity checks for indirect registers.
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
7335d8006fdc065c8dbe6b63007ffa77ffd53470 07-Jan-2010 Brian Paul <brianp@vmware.com> tgsi: add assertion to verify legal register file

This assertion fails with piglit glsl-vs-mov-after-deref test
because we're double freeing the memory. It seems there's some
confusion between what's placed in the hash table and what isn't.
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
0c6794c46fdd1225bb1d8ece77ea937cb822a1a3 07-Jan-2010 Brian Paul <brianp@vmware.com> tgsi: fix incorrectly placed braces, add more braces to be clear
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
16b5d2eba3b5ccb56c26c0d1c66763f99f1ad191 07-Jan-2010 Brian Paul <brianp@vmware.com> tgsi: move register checking code before check_register_usage()

check_register_usage() frees the scan_register *reg data so we were
reading from freed memory. This fixes a valgrind error found with
piglit's glsl-vs-mov-after-deref test.
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
55b5c8816e95528cbe68599bade44796e10711cd 05-Jan-2010 Michal Krol <michal@vmware.com> tgsi: Use FREE() to release MALLOC-ed() memories in sanity.
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
767d1472df68a777c51c406fa3f8d642c7cf58c0 05-Jan-2010 Michal Krol <michal@vmware.com> tgsi: Fix bogus loop condition in sanity.
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
ff56a12051a91c5c69db9afb85e4a3ebdb17ef96 23-Dec-2009 Michal Krol <michal@vmware.com> tgsi: Support signed/unsigned integer immediate types.
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
a00da63e6612607044e93f2900fba21bddfd0cad 24-Dec-2009 Zack Rusin <zackr@vmware.com> util: put vertices_per_primitive function in its proper location
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
22370990f28987b361c6adf8e81c5a18184e88ea 23-Dec-2009 Zack Rusin <zackr@vmware.com> tgsi: add missing support for two dimensional arrays in various places

in particular asm text parsing and sanity checking were missing code
to handle multi-dimensional arrays/geometry shaders
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
3ff688ea299581e60caf5d6e1a464f68c717fe83 14-Dec-2009 Zack Rusin <zackr@vmware.com> tgsi: add properties and system value register

adds support for properties to all parts of the tgsi framework, plus
introduces a new register which will be used for system generated
values.
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
87eec80c1120d2cd9749ee360b77922feabf7f10 01-Dec-2009 Keith Whitwell <keithw@vmware.com> Merge commit 'origin/tgsi-simplify-ext'

Conflicts:
src/gallium/drivers/r300/r300_vs.c
2fd1aee217988caacd5c87d76deab3c0caf1bb00 27-Nov-2009 Michal Krol <michal@vmware.com> tgsi/sanity: Up MAX_REGISTERS to 1024.
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
91a4e6d53f83c45c1da9240b6325011d96b61386 24-Nov-2009 Keith Whitwell <keithw@vmware.com> tgsi: rename fields of tgsi_full_src_register to reduce verbosity

SrcRegister -> Register
SrcRegisterInd -> Indirect
SrcRegisterDim -> Dimension
SrcRegisterDimInd -> DimIndirect
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
5b0824dfe5eaf59fa87134e7482b3d147b262901 24-Nov-2009 Keith Whitwell <keithw@vmware.com> tgsi: rename fields of tgsi_full_dst_register to reduce verbosity

DstRegister -> Register
DstRegisterInd -> Indirect
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
fe2b31e4a896167a33d267822b36eb2de0ceecba 24-Nov-2009 Keith Whitwell <keithw@vmware.com> tgsi: rename fields of tgsi_full_declaration to reduce verbosity

DeclarationRange -> Range
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
7d6c8f980d1e23ad6f557d650e89c715861a3b0c 24-Nov-2009 Keith Whitwell <keithw@vmware.com> tgsi: rename fields of tgsi_full_instruction to avoid excessive verbosity

InstructionPredicate -> Predicate
InstructionLabel -> Label
InstructionTexture -> Texture
FullSrcRegisters -> Src
FullDstRegisters -> Dst
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
aa2b2e5d7d53ddd08425536edddec509a8834bfc 02-Nov-2009 Michal Krol <michal@vmware.com> tgsi: Update for gallium interface changes.
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
983b261e6d85020ae19418428d25f2e70f43d7dd 12-Sep-2009 Keith Whitwell <keithw@vmware.com> tgsi: add const qualifier
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
848ab8be8c34b00b2afe6120882f8c29f047ced5 03-Sep-2009 Keith Whitwell <keithw@vmware.com> aux/tgsi: pull back ureg work from 0.1 branch

Manual merge of ureg changes on the branch. Too much unrelated stuff
for a proper merge.
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
cb90c43676c258419e4b617c908570891d3674cb 31-Jul-2009 Michal Krol <michal@vmware.com> Rename TGSI LOOP instruction to better match theri usage.

The LOOP/ENDLOOP pair is renamed to BGNFOR/ENDFOR as its behaviour
is similar to a C language for-loop.

The BGNLOOP2/ENDLOOP2 pair is renamed to BGNLOOP/ENDLOOP as now
there is no name collision.
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
6c70285e330bd19db78b7d45e43a01b0255ca15f 30-Jul-2009 Michal Krol <michal@vmware.com> tgsi: Add proper constraints to sanity.
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
cf8907018e449580b397f09c267219a612ba5db4 30-Jul-2009 Michal Krol <michal@vmware.com> 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.
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
ba91e79dad6a3666ae31b13c0c4b3b174f10b747 28-Feb-2009 Michal Krol <michal@vmware.com> tgsi: More descriptive sanity diagnostic messages.
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
ea4bf267e4b023b08043f91ac44592fed1736e7f 18-Feb-2009 José Fonseca <jfonseca@vmware.com> util: Move p_debug.h into util module.

The debug functions depend on several util function for os abstractions, and
these depend on debug functions, so a seperate module is not possible.
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
639a2b0ec853eda49e3e7150b2ed7f8f40d101af 06-Nov-2008 Brian <brian.paul@tungstengraphics.com> gallium: don't range check tgsi register index for indirect accesses

Fixes progs/vp/arl.txt test.
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
e6a120fefea44078b3a8d4292d83671e6c41357f 17-Sep-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: fix tgsi sanity checker with respect to END.

Subroutine code may be found after the END instruction so it's not always
the last instruction.
At least check for presence of exactly one END instruction though.
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
ad16ecbbe4fe8c1bcb18ed8fbbd672c68a0b17fa 16-Sep-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> tgsi: Make tgsi_sanity.c compile with make
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
eb5b16d278e0f7ee0121049e43dfee1d52f2b0f7 10-Sep-2008 José Fonseca <jrfonseca@tungstengraphics.com> tgsi: Fix newline pos.
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
4b929b32d03a58d80cacbd63c172dbd7221c8a8f 13-Aug-2008 Michal Krol <michal@tungstengraphics.com> tgsi: Validate instruction opcode and operand counts.
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c
c208a2c791fa24c7c5887fc496738cbddbfafc72 27-Jul-2008 José Fonseca <jrfonseca@tungstengraphics.com> Merge tgsi/exec and tgsi/util directories.
/external/mesa3d/src/gallium/auxiliary/tgsi/tgsi_sanity.c