summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/tgsi
Commit message (Collapse)AuthorAgeFilesLines
* tgsi: Check in scan for fs position and depth readsJakob Bornecrantz2011-09-222-0/+17
|
* tgsi: fix typo in commit 324ac982d8e7Emil Velikov2011-09-101-1/+1
| | | | Reviewed-by: Bryan Cain <[email protected]>
* gallium: add TGSI opcodes UARL and UCMPBryan Cain2011-09-102-0/+33
| | | | | | | They are needed by glsl_to_tgsi for an efficient implementation using native integers. Reviewed-by: Brian Paul <[email protected]>
* gallium: add shadow 1D and 2D array samplers to TGSIMarek Olšák2011-09-105-7/+54
| | | | And filling in all the switch statements in auxiliary. Mostly untested.
* tgsi: add support for texture offsets to the TGSI IR. (v2)Dave Airlie2011-09-028-9/+132
| | | | | | | | | | | | | This adds tokens for texture offsets, to store 4 * swizzled vec 3 for use in TXF and other opcodes. It also contains TGSI exec changes for softpipe to use this code, along with GLSL->TGSI support for TXF. v2: add some more comments, add back padding I removed. Signed-off-by: Dave Airlie <[email protected]> Reviewed-by: Brian Paul <[email protected]>
* tgsi: add TXF support.Dave Airlie2011-08-252-1/+59
| | | | | | | | | | | This is a straight texel fetch with no filtering or clamping. It uses integers to specify the i/j/k (from EXT_gpu_shader4). To enable this I had to add another hook into the tgsi sampler so that we could easily bypass all the filtering sample does. Signed-off-by: Dave Airlie <[email protected]> Reviewed-by: Brian Paul <[email protected]>
* tgsi: add TXQ support. (v2)Dave Airlie2011-08-252-1/+31
| | | | | | | | | | this adds another callback in the sampler struct containing get_dims entry point. This is used to query the driver for the texture resource dimensions for the resource bound to the current sampler. v2: remove unusued variable, fix indent Signed-off-by: Dave Airlie <[email protected]>
* Merge branch 'glsl-to-tgsi'Bryan Cain2011-08-042-1/+14
|\ | | | | | | | | | | Conflicts: src/mesa/state_tracker/st_atom_pixeltransfer.c src/mesa/state_tracker/st_program.c
| * tgsi: add support for TGSI_OPCODE_MOD in tgsi_execBryan Cain2011-08-011-1/+12
| |
| * gallium: add PIPE_SHADER_CAP_INTEGERSBryan Cain2011-08-011-0/+2
| |
* | Merge branch 'gallium-polygon-stipple'Brian Paul2011-07-212-10/+31
|\ \
| * | tgsi: add info fields for fragcoord origin, center, etcBrian Paul2011-07-212-10/+31
| |/
* / tgsi: add some debug/print code in exec_tex(), disabledBrian Paul2011-07-061-0/+11
|/
* tgsi: s/varient/variant/Brian Paul2011-06-071-2/+2
|
* tgsi/ureg: bump the limit of immediatesMarek Olšák2011-05-301-1/+1
| | | | | | | | | | Lowered indirect addressing can create lots of immediates. Fixes piglit/glsl-fs-uniform-array-7 on r300g. NOTE: This is a candidate for the 7.10 branch. Reviewed-by: Brian Paul <[email protected]>
* tgsi: remove set-but-unused variablesMarek Olšák2011-05-011-4/+0
|
* tgsi: Fix parsing of properties with digits in the nameJakob Bornecrantz2011-03-131-1/+1
|
* tgsi: Disable SSE2 code generation.José Fonseca2011-03-041-3/+20
| | | | | | It's broken now that tgsi_exec_machine::Inputs/Ouputs are pointers. Temporary if anybody still cares about tgsi_sse2.c. Permanent otherwise.
* tgsi: Update assert.José Fonseca2011-03-031-1/+1
| | | | | Elements(mach->Inputs) is wrong now that mach->Inputs is dynamically allocated.
* tgsi: defer allocation of huge inputs/outputs until we have a gsZack Rusin2011-03-022-6/+45
|
* gallium/tgsi: shuffle ureg_src structure to work around gcc4.6.0 issueJerome Glisse2011-02-251-14/+14
| | | | | | | | | | | | There is an issue with gcc 4.6.0 that leads to segfault/assert with mesa due to ureg_src size, reshuffling the structure member to better better alignment work around the issue. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47893 7.9 + 7.10 candidate Signed-off-by: Jerome Glisse <[email protected]>
* tgsi: add cases for array texturesBrian Paul2011-01-261-0/+2
| | | | Fixes http://bugs.freedesktop.org/show_bug.cgi?id=33555
* tgsi: add support for 1D/2D texture arraysBrian Paul2011-01-253-2/+39
|
* gallium: implement modern sampling schemeZack Rusin2011-01-2412-33/+607
| | | | | | | | | | | 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]
* Merge branch 'draw-instanced'Brian Paul2011-01-156-8/+99
|\ | | | | | | | | | | | | | | Conflicts: src/gallium/auxiliary/draw/draw_llvm.c src/gallium/drivers/llvmpipe/lp_state_fs.c src/glsl/ir_set_program_inouts.cpp src/mesa/tnl/t_vb_program.c
| * tgsi/ppc: add case for system values and assertBrian Paul2010-12-081-1/+3
| |
| * tgsi/sse: add support for system valuesBrian Paul2010-12-081-3/+51
| |
| * tgsi: new tgsi_shader_info fields for system valuesBrian Paul2010-12-082-1/+22
| |
| * tgsi: add support for system values to TGSI interpreterBrian Paul2010-12-082-3/+23
| |
* | tgsi: remove redundant name tables from tgsi_text, use those from tgsi_dumpMarek Olšák2011-01-063-56/+33
| | | | | | | | | | I also specified the array sizes in the header so that one can use the Elements macro on it.
* | tgsi: Clean up header file inclusion in tgsi_text.h.Vinson Lee2010-12-301-2/+4
| |
* | tgsi: Clean up header file inclusion in tgsi_sanity.h.Vinson Lee2010-12-301-2/+4
| |
* | tgsi_dump: fix assert due to missing property name.Dave Airlie2010-12-281-1/+2
| |
* | tgsi_text: just parse as an integer (value is a boolean).Dave Airlie2010-12-241-1/+0
| | | | | | | | | | | | fixes warning reported by vlee on irc. Signed-off-by: Dave Airlie <[email protected]>
* | gallium: add fragment shader property for color writes to all buffers. (v2)Dave Airlie2010-12-243-2/+23
| | | | | | | | | | | | | | | | | | | | For GL fragColor semantics we need to tell the pipe drivers that the fragment shader color result is to be replicated to all bound color buffers, this adds the basic TGSI + documentation. v2: fix missing comma pointed out by Tilman on mesa-dev. Signed-off-by: Dave Airlie <[email protected]>
* | tgsi: fix rbug compile errorMarek Olšák2010-12-111-1/+2
|/ | | | | | | ../mesa/src/gallium/auxiliary/tgsi/tgsi_parse.h:139: error: dereferencing pointer ‘tokens.25’ does break strict-aliasing rules Signed-off-by: Marek Olšák <[email protected]>
* gallium: add PIPE_SHADER_CAP_SUBROUTINESMarek Olšák2010-11-221-0/+2
| | | | | | | | | | | This fixes piglit/glsl-vs-main-return and glsl-fs-main-return for the drivers which don't support RET (i915g, r300g, r600g, svga). ir_to_mesa does not currently generate subroutines, but it's a matter of time till it's added. It would then break all the drivers which don't implement them, so this CAP makes sense. Signed-off-by: Marek Olšák <[email protected]>
* tgsi: Add STENCIL to text parser.Chia-I Wu2010-11-211-1/+2
| | | | | | | | | Fix OpenVG "filter" demo Program received signal SIGSEGV, Segmentation fault. 0xb7153dc9 in str_match_no_case (pcur=0xbfffe564, str=0x0) at tgsi/tgsi_text.c:86 86 while (*str != '\0' && *str == uprcase( *cur )) {
* tgsi: fill out CAPs for indirect addressingMarek Olšák2010-11-121-0/+5
|
* tgsi: remove unused functionBrian Paul2010-11-041-11/+0
|
* tgsi/build: Reduce interface clutter.Michal Krol2010-11-042-541/+367
| | | | Make private those functions that are used internally only.
* tgsi/exec: Get rid of obsolete condition codes.Michal Krol2010-11-042-33/+4
|
* tgsi/exec: Cleanup the remaining arithmetic instructions.Michal Krol2010-11-041-378/+413
| | | | As a result remove some nasty macros.
* tgsi: add scanner support for centroid inputsDave Airlie2010-10-152-0/+2
|
* gallium/tgsi: add support for stencil writes.Dave Airlie2010-10-133-4/+8
| | | | | | this adds the capability + a stencil semantic id, + tgsi scan support. Signed-off-by: Dave Airlie <[email protected]>
* tgsi: Export some names for some tgsi enums.José Fonseca2010-10-112-23/+35
| | | | Useful to give human legible names in other cases.
* ureg: support centroid interpolationLuca Barbieri2010-09-272-9/+31
|
* tgsi: Fix missing test before checkJakob Bornecrantz2010-09-221-1/+2
| | | | | | As introduced with commit d21301675c249602e19310d5b62fad424f2f2ac2 NOTE: This is a candidate for the 7.9 branch.
* tgsi: Remove duplicate case value.Vinson Lee2010-09-201-1/+0
|
* tgsi: Actually care what check_soa_dependencies saysJakob Bornecrantz2010-09-211-17/+39
| | | | | | Thanks to José for the more complete list of supported opcodes. NOTE: This is a candidate for the 7.9 branch.