summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/tgsi
Commit message (Collapse)AuthorAgeFilesLines
* tgsi: ifdef out unused function micro_sqrt.Vinson Lee2010-02-201-0/+2
|
* tgsi: Make more exec opcodes look pretty.Michal Krol2010-02-191-64/+20
|
* tgsi: Change prototypes of micro opcodes to explicitly indicates number of args.Michal Krol2010-02-191-164/+206
|
* tgsi: Rewrite exec implementations of NRM and NRM4.Michal Krol2010-02-191-61/+70
|
* tgsi: Gather cylindrical wrap info in tgsi_shader_info struct.Michal Krol2010-02-092-0/+2
|
* tgsi: Add ureg_DECL_fs_input_cyl().Michal Krol2010-02-092-52/+94
| | | | Allows one to declare fragment shader inputs with cylindrical wrap info.
* gallium: Add cylindrical wrap info to TGSI declaration.Michal Krol2010-02-093-1/+21
|
* tgsi: Remove tgsi_dump_c.[ch].Michal Krol2010-02-092-511/+0
| | | | Little utility after development stabilisation, use tgsi_dump instead.
* tgsi: remove special-case code for fragment positionBrian Paul2010-02-051-7/+1
| | | | | | | | | Since the origin_lower_left / pixel_center_origin changes, we need to use the fragcoord info that's set up in setup_fragcoord_coeff(). The code in exec_declaration() was clobbering the the interpolated fragment position. Fixes progs/glsl/fragcoord.c demo.
* Merge branch 'gallium-embedded'José Fonseca2010-02-033-1/+3
|\
| * gallium: Make pipe_atomic a regular int32_t.José Fonseca2010-02-022-0/+2
| |
| * gallium: pipe/p_inlines.h -> util/u_inlines.hJosé Fonseca2010-02-021-1/+1
| |
* | tgsi: added debugging code to catch divide by zeroBrian Paul2010-02-031-0/+12
| |
* | tgsi: convert CHECK_INF_OR_NAN to inline functionBrian Paul2010-02-031-8/+17
| | | | | | | | | | And disable with if (0). Inf/NaN can occur normally during program execution. Only enable the check code when needed during debugging.
* | tgsi: added tgsi_alloc_tokens()Brian Paul2010-02-022-0/+15
| |
* | tgsi: fix commentBrian Paul2010-02-021-1/+1
| |
* | tgsi: ureg_DECL_gs_input() accepts shader semantics.Michal Krol2010-02-022-6/+16
|/
* tgsi: add properties for fragment coord conventions (v3)Luca Barbieri2010-01-294-2/+122
| | | | | | | | | | | | | | | | | | | | | | | | | | | Changes in v3: - Documented the new properties - Added comments for property values - Rebased to current master Changes in v2: - Caps are added in a separate, subsequent patch This adds two TGSI fragment program properties that indicate the fragment coord conventions. The properties behave as described in the extension spec for GL_ARB_fragment_coord_conventions, but the default origin in upper left instead of lower left as in OpenGL. The syntax is: PROPERTY FS_COORD_ORIGIN [UPPER_LEFT|LOWER_LEFT] PROPERTY FS_COORD_PIXEL_CENTER [HALF_INTEGER|INTEGER] The names have been chosen for consistency with the GS properties and the OpenGL extension spec. The defaults are of course the previously assumed conventions: UPPER_LEFT and HALF_INTEGER.
* tgsi: Constants declared with ureg_DECL_constant() are one-dimensional.Michal Krol2010-01-281-4/+22
| | | | | This is to maintain backward compatibility with drivers that don't support arrays of constant buffers.
* tgsi: Add ureg_property_gs_output_prim/max_vertices().Michal Krol2010-01-282-3/+45
|
* gallium: Rename PIPE_MAX_CONSTANT to PIPE_MAX_CONSTANT_BUFFERS.Michal Krol2010-01-283-5/+5
|
* tgsi: Handle two-dimensional constants in text parser.Michal Krol2010-01-283-11/+78
|
* gallium: Implement 2D constant buffers for fragment shader in softpipe.Michal Krol2010-01-282-152/+117
|
* tgsi: Handle 2-D declarations.Michal Krol2010-01-286-89/+156
|
* tgsi: Silence uninitialized variable warning.Vinson Lee2010-01-281-1/+1
|
* tgsi: Remove unnecessary header.Vinson Lee2010-01-271-1/+0
|
* Merge branch 'mesa_7_7_branch'Brian Paul2010-01-221-6/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/gallium/auxiliary/draw/draw_context.c src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c src/gallium/auxiliary/pipebuffer/Makefile src/gallium/auxiliary/pipebuffer/SConscript src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c src/gallium/auxiliary/tgsi/tgsi_scan.c src/gallium/drivers/i915/i915_surface.c src/gallium/drivers/i915/i915_texture.c src/gallium/drivers/llvmpipe/lp_setup.c src/gallium/drivers/llvmpipe/lp_tex_sample_c.c src/gallium/drivers/llvmpipe/lp_texture.c src/gallium/drivers/softpipe/sp_prim_vbuf.c src/gallium/state_trackers/xorg/xorg_dri2.c src/gallium/winsys/drm/intel/gem/intel_drm_api.c src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c src/gallium/winsys/drm/radeon/core/radeon_drm.c src/gallium/winsys/drm/vmware/core/vmw_screen_dri.c src/mesa/state_tracker/st_cb_clear.c
| * tgsi: fix detection of front-facing attributeBrian Paul2010-01-151-6/+4
| | | | | | | | This code was not updated when we added TGSI_SEMANTIC_FACE a while ago.
* | tgsi: Fix behaviour of dimension index.Michal Krol2010-01-183-27/+29
| | | | | | | | The dimension index always addresses the second-dimension axis.
* | tgsi: Allow TEMPORARY registers as indirect address into source operands.Michal Krol2010-01-183-8/+11
| |
* | tgsi: Add ureg_DECL_immediate_block_uint().Michal Krol2010-01-182-0/+34
| | | | | | | | | | Allows declaring a contiguous block of immediates. Useful for relative indexing.
* | tgsi: Add missing semantic name in text parser.Chia-I Wu2010-01-181-1/+2
| | | | | | | | This time, INSTANCEID is missing...
* | tgsi: Add ureg_property_gs_input_prim().Michal Krol2010-01-152-0/+42
| |
* | tgsi: Add ureg_src_dimension().Michal Krol2010-01-152-6/+28
| |
* | tgsi: Fix sanity checks for indirect registers.Michal Krol2010-01-151-3/+3
| |
* | Merge branch 'mesa_7_7_branch'Jakob Bornecrantz2010-01-141-0/+8
|\| | | | | | | | | | | | | Conflicts: src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c src/gallium/auxiliary/util/Makefile src/gallium/drivers/r300/r300_state_derived.c
| * tgsi: Silence uninitialized variable warnings.Vinson Lee2010-01-081-0/+8
| |
* | Merge branch 'instanced-arrays'Michal Krol2010-01-143-1/+44
|\ \ | | | | | | | | | | | | Conflicts: src/gallium/drivers/softpipe/sp_draw_arrays.c
| * \ Merge branch 'master' into instanced-arraysMichal Krol2010-01-0515-1129/+1929
| |\ \ | | | | | | | | | | | | | | | | | | | | Conflicts: src/gallium/auxiliary/tgsi/tgsi_dump.c src/gallium/include/pipe/p_shader_tokens.h
| * | | tgsi: Support system values in ureg.Michal Krol2009-12-302-0/+42
| | | |
| * | | Implement draw_arrays_instanced() in softpipe.Michal Krol2009-12-291-1/+2
| | | | | | | | | | | | | | | | | | | | Modify the translate module to respect instance divisors and accept instance id as a parameter to calculate input vertex offset.
* | | | gallium: Simplify PIPE_ALIGN_VAR.José Fonseca2010-01-121-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | gcc allows pre-fix variable attributes. Suggested by Ian Romanick.
* | | | gallium: Generalize the alignment macros to other compilers and any alignment.José Fonseca2010-01-121-1/+1
| | | |
* | | | Merge branch 'mesa_7_7_branch'Brian Paul2010-01-081-20/+30
|\ \ \ \ | | |_|/ | |/| | | | | | | | | | | | | | Conflicts: src/mesa/drivers/dri/i965/brw_wm_emit.c
| * | | tgsi: fix SSE code emit for XPDBrian Paul2010-01-071-20/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rearrange things so that the writes to the dest registers happen after we've fetched/used all src registers. The problematic instruction was: XPD TEMP[2].xyz, TEMP[0], TEMP[2]; Note that the dst reg is also a src reg. This fixes bad shading with progs/glsl/bump.c since Eric's changes to the Mesa program optimizer in commit d6690ce15fb8c7c6abf1bc0d847c1d2da2c33904. The optimizer rearranges some registers so we occasionally wind up with something like the above.
* | | | tgsi: Cleanup dot-product opcodes in interpreter.Michal Krol2010-01-081-97/+130
| | | |
* | | | tgsi: add assertion to verify legal register fileBrian Paul2010-01-071-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | tgsi: fix incorrectly placed braces, add more braces to be clearBrian Paul2010-01-071-2/+4
| | | |
* | | | tgsi: move register checking code before check_register_usage()Brian Paul2010-01-071-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | gallium: Fix texture sampling with explicit LOD in softpipe.Michal Krol2010-01-073-14/+36
| | | |