summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/tgsi
AgeCommit message (Collapse)AuthorFilesLines
2011-08-25tgsi: add TXF support.Dave Airlie2-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 <airlied@redhat.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2011-08-25tgsi: add TXQ support. (v2)Dave Airlie2-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 <airlied@redhat.com>
2011-08-04Merge branch 'glsl-to-tgsi'Bryan Cain2-1/+14
Conflicts: src/mesa/state_tracker/st_atom_pixeltransfer.c src/mesa/state_tracker/st_program.c
2011-08-01tgsi: add support for TGSI_OPCODE_MOD in tgsi_execBryan Cain1-1/+12
2011-08-01gallium: add PIPE_SHADER_CAP_INTEGERSBryan Cain1-0/+2
2011-07-21Merge branch 'gallium-polygon-stipple'Brian Paul2-10/+31
2011-07-21tgsi: add info fields for fragcoord origin, center, etcBrian Paul2-10/+31
2011-07-06tgsi: add some debug/print code in exec_tex(), disabledBrian Paul1-0/+11
2011-06-07tgsi: s/varient/variant/Brian Paul1-2/+2
2011-05-30tgsi/ureg: bump the limit of immediatesMarek Olšák1-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 <brianp@vmware.com>
2011-05-01tgsi: remove set-but-unused variablesMarek Olšák1-4/+0
2011-03-13tgsi: Fix parsing of properties with digits in the nameJakob Bornecrantz1-1/+1
2011-03-04tgsi: Disable SSE2 code generation.José Fonseca1-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.
2011-03-03tgsi: Update assert.José Fonseca1-1/+1
Elements(mach->Inputs) is wrong now that mach->Inputs is dynamically allocated.
2011-03-02tgsi: defer allocation of huge inputs/outputs until we have a gsZack Rusin2-6/+45
2011-02-25gallium/tgsi: shuffle ureg_src structure to work around gcc4.6.0 issueJerome Glisse1-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 <jglisse@redhat.com>
2011-01-26tgsi: add cases for array texturesBrian Paul1-0/+2
Fixes http://bugs.freedesktop.org/show_bug.cgi?id=33555
2011-01-25tgsi: add support for 1D/2D texture arraysBrian Paul3-2/+39
2011-01-24gallium: implement modern sampling schemeZack Rusin12-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]
2011-01-15Merge branch 'draw-instanced'Brian Paul6-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
2011-01-06tgsi: remove redundant name tables from tgsi_text, use those from tgsi_dumpMarek Olšák3-56/+33
I also specified the array sizes in the header so that one can use the Elements macro on it.
2010-12-30tgsi: Clean up header file inclusion in tgsi_text.h.Vinson Lee1-2/+4
2010-12-30tgsi: Clean up header file inclusion in tgsi_sanity.h.Vinson Lee1-2/+4
2010-12-28tgsi_dump: fix assert due to missing property name.Dave Airlie1-1/+2
2010-12-24tgsi_text: just parse as an integer (value is a boolean).Dave Airlie1-1/+0
fixes warning reported by vlee on irc. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-12-24gallium: add fragment shader property for color writes to all buffers. (v2)Dave Airlie3-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 <airlied@redhat.com>
2010-12-11tgsi: fix rbug compile errorMarek Olšák1-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 <maraeo@gmail.com>
2010-12-08tgsi/ppc: add case for system values and assertBrian Paul1-1/+3
2010-12-08tgsi/sse: add support for system valuesBrian Paul1-3/+51
2010-12-08tgsi: new tgsi_shader_info fields for system valuesBrian Paul2-1/+22
2010-12-08tgsi: add support for system values to TGSI interpreterBrian Paul2-3/+23
2010-11-22gallium: add PIPE_SHADER_CAP_SUBROUTINESMarek Olšák1-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 <maraeo@gmail.com>
2010-11-21tgsi: Add STENCIL to text parser.Chia-I Wu1-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 )) {
2010-11-12tgsi: fill out CAPs for indirect addressingMarek Olšák1-0/+5
2010-11-04tgsi: remove unused functionBrian Paul1-11/+0
2010-11-04tgsi/build: Reduce interface clutter.Michal Krol2-541/+367
Make private those functions that are used internally only.
2010-11-04tgsi/exec: Get rid of obsolete condition codes.Michal Krol2-33/+4
2010-11-04tgsi/exec: Cleanup the remaining arithmetic instructions.Michal Krol1-378/+413
As a result remove some nasty macros.
2010-10-15tgsi: add scanner support for centroid inputsDave Airlie2-0/+2
2010-10-13gallium/tgsi: add support for stencil writes.Dave Airlie3-4/+8
this adds the capability + a stencil semantic id, + tgsi scan support. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-10-11tgsi: Export some names for some tgsi enums.José Fonseca2-23/+35
Useful to give human legible names in other cases.
2010-09-27ureg: support centroid interpolationLuca Barbieri2-9/+31
2010-09-22tgsi: Fix missing test before checkJakob Bornecrantz1-1/+2
As introduced with commit d21301675c249602e19310d5b62fad424f2f2ac2 NOTE: This is a candidate for the 7.9 branch.
2010-09-20tgsi: Remove duplicate case value.Vinson Lee1-1/+0
2010-09-21tgsi: Actually care what check_soa_dependencies saysJakob Bornecrantz1-17/+39
Thanks to José for the more complete list of supported opcodes. NOTE: This is a candidate for the 7.9 branch.
2010-09-21tgsi: Don't ignore indirect registers in tgsi_check_soa_dependenciesJosé Fonseca1-2/+4
NOTE: This is a candidate for the 7.9 branch.
2010-09-20tgsi: add switch/case opcodes to tgsi_opcode_tmp.hLuca Barbieri1-0/+4
2010-09-16tgsi/sse: fix aos_to_soa() loop to handle num_inputs==0Brian Paul1-6/+9
Basically, change the loop from: do {...} while (--num_inputs != 0) into: while (num_inputs != 0) { ... --num_inputs; } Fixes fd.o bug 29987.
2010-09-15tgsi: fix incorrect usage_mask for shadow tex instructionsBrian Paul1-5/+6
The shadow versions of the texture targets use an extra component (Z) to express distance from light source to the fragment. Fixes the shadowtex demo with llvmpipe.
2010-09-14gallium: introduce get_shader_param (ALL DRIVERS CHANGED) (v3)Luca Barbieri1-0/+30
Changes in v3: - Also change trace, which I forgot about Changes in v2: - No longer adds tessellation shaders Currently each shader cap has FS and VS versions. However, we want a version of them for geometry, tessellation control, and tessellation evaluation shaders, and want to be able to easily query a given cap type for a given shader stage. Since having 5 duplicates of each shader cap is unmanageable, add a new get_shader_param function that takes both a shader cap from a new enum and a shader stage. Drivers with non-unified shaders will first switch on the shader and, within each case, switch on the cap. Drivers with unified shaders instead first check whether the shader is supported, and then switch on the cap. MAX_CONST_BUFFERS is now per-stage. The geometry shader cap is removed in favor of checking whether the limit of geometry shader instructions is greater than 0, which is also used for tessellation shaders. WARNING: all drivers changed and compiled but only nvfx tested