summaryrefslogtreecommitdiff
path: root/src/mesa/shader/prog_execute.c
AgeCommit message (Collapse)Author
2010-06-10mesa: rename src/mesa/shader/ to src/mesa/program/Brian Paul
2010-05-13mesa: Remove no-op wrappers around trig functions.Eric Anholt
2010-05-13mesa: Remove _mesa_pow(), which is always just pow().Eric Anholt
2010-04-18glsl: Fix handling of OPCODE_PRINT for no registers case.Vinson Lee
A register file value is unsigned so could never be -1. A value of 0 also aliased to PROGRAM_TEMPORARY. If an OPCODE_PRINT has no registers to print, set the register file value to PROGRAM_UNDEFINED and check for that value when executing this instruction.
2010-03-04Revert "mesa: Remove pointless comparison of unsigned integer with a ↵Vinson Lee
negative constant." This reverts commit a05fdbcb719ac64e6be842372813f0f4ca2f4f93. Removing the comparison is wrong. The comparison with -1 should be changed to another value (probably PROGRAM_UNDEFINED) along with another change in the shader assembler. Conflicts: src/mesa/shader/prog_execute.c
2010-02-19mesa: remove abs/negate from fetch_vector1ui()Brian Paul
This function is only used for the NV unpack instructions. Negate/abs make no sense and removing the code fixes Windows compiler warnings. Found by Karl Schultz.
2010-02-19Replace the _mesa_*printf() wrappers with the plain libc versionsKristian Høgsberg
2010-02-15mesa: Remove pointless comparison of unsigned integer with a negative constant.Vinson Lee
2010-02-13mesa: Fix compiler warningsKarl Schultz
Add explicit casts, fix constant types, fix variable types. Fixes about 340 warnings in MSFT Visual Studio.
2010-02-05mesa: debug output for ARLBrian Paul
2010-01-27mesa: fix double->float assignment warnings, int/uint comparison warningsBrian Paul
Reported by Karl Schultz.
2010-01-22Merge branch 'mesa_7_7_branch'Brian Paul
Conflicts: src/mesa/shader/prog_execute.c
2010-01-22mesa: use new fetch_vector1ui() function for 'unpack' GPU instructionsBrian Paul
The UP2H, UP2US, UP4B and UP4UB instructions interpret the float registers as integers. With gcc -O3 some bits were getting mixed up somewhere. This is part of the fix for the piglit fp-unpack-01 test failure (bug 25973).
2010-01-22Merge branch 'mesa_7_7_branch'Brian Paul
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
2010-01-16glsl: Remove unnecessary header from prog_execute.c.Vinson Lee
2009-12-22mesa: adjust OPCODE_IF/ELSE BranchTarget fields to point to ELSE/ENDIF instr.Brian Paul
This is a little more logical. Suggested in bug report 25654.
2009-12-22mesa: adjust BRK/CONT BranchTarget to always point to ENDLOOP instructionBrian Paul
To be more consistant.
2009-12-22mesa: added some assertions in BNGLOOP/ENDLOOP casesBrian Paul
2009-12-07mesa: fix shader prog_execute strict aliasing violationsRoland Scheidegger
use unions instead of pointer casts.
2009-10-01mesa: Return -FLT_MAX instead of 0 for LG2(0).Vinson Lee
lim x->0 log(x) = -inf so -FLT_MAX is a better approximation than 0 for LG2(0).
2009-09-24Merge branch 'mesa_7_5_branch' into mesa_7_6_branchBrian Paul
2009-09-23mesa: don't bias LOD in shader interpreter; do it in swrastBrian Paul
2009-08-31mesa: debug printf for KILBrian Paul
2009-06-03mesa: added NaN checking code (disabled)Brian Paul
2009-06-03mesa: check/prevent NaN for EX2/LG2Brian Paul
2009-04-14mesa: merge the prog_src_register::NegateBase and NegateAbs fieldsBrian Paul
There's really no need for two negation fields. This came from the GL_NV_fragment_program extension. The new, unified Negate bitfield applies after the absolute value step.
2009-04-03mesa: for OPCODE_LIT, use _mesa_pow() instead of exp() and log()Brian Paul
Also, s/pow/_mesa_pow/
2009-04-01mesa: use correct tex unit lod bias for TXB instructionBrian Paul
2009-03-07mesa: remove GL_MESA_program_debug extensionBrian Paul
This was never fully fleshed out and hasn't been used.
2008-12-19GLSL: The LOG2 macro doesn't have enough precisionIan Romanick
It looks like the LOG2 macro only has 8 or 9 bits of precission, but the ARB_vertex_program spec says "accurate to at least 10 bits".
2008-12-15mesa: rename slang_library_noise.[ch] to prog_noise.[ch] and rename functionsBrian Paul
The noise functions were not glsl-specific. Also, ran indent on the code to clean it up.
2008-12-12mesa: use IFLOOR(x) instead of (int) FLOORF(x)Brian Paul
2008-11-11mesa: allow relative indexing into all register files and indirect dst ↵Brian Paul
register indexing
2008-11-07mesa: forgot sqrt in NRM3/4 instructionsBrian Paul
2008-11-07mesa: added DP2, DP2A instructionsBrian Paul
2008-11-07mesa: added AND/OR/NOT/XOR instructionsBrian Paul
2008-11-07mesa: added OPCODE_NRM3/NRM4 instructions for vector normalization.Brian Paul
We may emit these instructions from GLSL instead of DP3/RCP/MUL. Also, implement SSG (set sign) instruction in the interpreter.
2008-11-06mesa: rename OPCODE_INT -> OPCODE_TRUNCBrian Paul
Trunc is a more accurate description; there's no type conversion involved.
2008-09-23mesa: Apply MSVC portability fixes from Alan Hourihane.José Fonseca
2008-09-18mesa: prefix a bunch of #include lines with "main/".Brian Paul
This is another step toward removing a whole bunch of -I flags from the cc commands. Still need to address driver code...
2008-07-29mesa: Silence compiler warnings on Windows.Brian Paul
2008-06-12glsl: allow uniformsZack Rusin
2008-05-16whitespace/formattingBrian Paul
2008-05-14Updated GLSL uniform/sampler handling from gallium-0.1 branchBrian Paul
Previously, the shader linker combined the uniforms used by the vertex and fragment shaders into a combined set of uniforms. This made the implementation of glUniform*() simple, but was rather inefficient otherwise. Now each shader gets its own set of uniforms (no more modelview matrix showing up in the fragment shader uniforms, for example). cherry-picked by hand from gallium-0.1 branch
2008-04-22Fix error stringAlan Hourihane
2008-04-11fix failed assertion (parameter can be a PROGRAM_CONSTANT)Brian Paul
2007-11-23Consolidate texture fetch code and use partial derivatives when possible.Brian
2007-07-04Be more consistant with paths in #includes. Eventually, eliminate a bunch ↵Brian
of -I flags.
2007-05-02Resuscitate some of the DDX,DDY code.Brian
Only works for program input registers at this time. Good enough for the common case of texcoords, though.
2007-04-21another bit of debug codeBrian