summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-08-28ureg: return imm1f values as scalarsKeith Whitwell1-1/+7
Instead of IMM[5].wxxx, where .x is some random value, return the more useful IMM[5].wwww
2009-08-28st/d3d: correction for sampler decl emitKeith Whitwell1-3/+2
Recent change broke this
2009-08-28util: don't swallow debug output when running on consoleKeith Whitwell1-0/+11
2009-08-28tgsi: add generic instruction builderKeith Whitwell2-0/+33
When translating an incoming shader (rather than building one from scratch) it's preferable to be able to call a single, generic instruction emitter rather than figuring out which of the opcode-specific functions to call. (cherry picked from commit b570a7e6b6ebd05e94fd91f2df53de7d2e2e05d2)
2009-08-28ureg: make sampler decl take an explicit indexKeith Whitwell2-6/+29
2009-08-28ureg: add explicit undefined src/dest constructorsKeith Whitwell1-0/+50
Also functions to test for undefined registers.
2009-08-28ureg: shorten ureg_DECL_immediate*f to ureg_imm*fKeith Whitwell1-4/+4
2009-08-27ureg: respect Negate flag in src regsKeith Whitwell1-0/+3
2009-08-27tgsi: Ensure ureg inputs match the processor.José Fonseca1-0/+2
2009-08-27tgsi: Rewrite NRM opcode, store 1.0 in W component.Michal Krol1-23/+27
2009-08-27tgsi: Implement RFL, SFL, STR, X2D opcodes.Michal Krol1-5/+87
2009-08-27tgsi: Implement RCC opcode.Michal Krol1-1/+32
2009-08-27tgsi: Implement CLAMP opcode.Michal Krol1-7/+14
2009-08-27tgsi: Implement CND, CND0 opcodes.Michal Krol1-2/+14
2009-08-25tgsi: Disable ureg debug output.José Fonseca1-1/+1
2009-08-25tgsi: Initialize immediate swizzle.José Fonseca1-1/+1
2009-08-25softpipe: add additional surface formats in tile cache codeBrian Paul1-0/+3
2009-08-25softpipe: some improvements to texture tile cacheBrian Paul1-4/+12
Use a somewhat better function in tex_cache_pos() to get better caching. Increase number of cache entries to 50. Also fix a texture invalidation bug. If texture is marked as modified, invalidate all texture tiles.
2009-08-24tgsi: Add more sanity checking to ureg.José Fonseca2-1/+25
2009-08-24tgsi: Make ureg C++ friendly.José Fonseca1-1/+7
2009-08-24Revert "tgsi: Dummy ureg_complement/ureg_modulate."José Fonseca1-26/+1
These deprecated D3D PS 1.x features are better handled explicitely. This reverts commit ef5ba95e1913556834cdb623f62ab470dd4ed47a.
2009-08-24scons: Don't use deprecated Options.José Fonseca2-9/+9
2009-08-24tgsi: add missing functionality to support instructions with labelsKeith Whitwell2-1/+57
Could previously emit opcodes with label arguments, but was no way to patch them with the actual destinations of those labels. Adds two functions: ureg_get_instruction_number - to get the id of the next instruction to be emitted ureg_fixup_label - to patch an emitted label to point to a given instruction number. Need some more complex examples than u_simple_shader, so far this has only been compile-tested.
2009-08-24tgsi: Only free temp uregs.José Fonseca1-2/+3
Shorthand.
2009-08-24tgsi: Pass pipe_context as a parameter to ureg_create_shader.José Fonseca2-14/+30
Simplifies migration to tgsi_ureg.
2009-08-24tgsi: Dummy ureg_complement/ureg_modulate.José Fonseca1-1/+26
2009-08-21draw: Remove unused variable.José Fonseca1-1/+0
2009-08-21draw: cope with more primitives in draw_pipeline_runKeith Whitwell1-22/+55
This previously was used only for decomposed (POINT/LINE/TRI) primitives, but for some time a full range of primitives could end up in here. Fixes trivial/lineloop-clip on softpipe, among others. (cherry picked from commit 87cd8a3b8a2407b30916be418ff2f95dfea5d2ad)
2009-08-18tgsi: Fix typo in ureg constant creation.José Fonseca1-1/+1
2009-08-17tgsi: Backport tgsi_ureg to gallium-0.1.José Fonseca2-11/+10
2009-08-17tgsi: Remove unused argument.José Fonseca1-4/+2
2009-08-17tgsi: Add missing include.José Fonseca1-0/+1
2009-08-17tgsi: add simple facility for releasing and reusing temporariesKeith Whitwell2-4/+40
2009-08-17tgsi: rename ureg src/dest convertersKeith Whitwell1-3/+3
Also fix a typo in ureg_src().
2009-08-17tgsi: turn off debuggingKeith Whitwell1-1/+1
2009-08-17tgsi: use REALLOC for growing token poolKeith Whitwell1-11/+5
2009-08-17tgsi: add tgsi_ureg, a simplified tgsi shader builderKeith Whitwell5-0/+1381
This is modelled on the nice & easy-to-use facilities we had for building shaders in mesa, eg. in texenvprogram.c and friends. Key points include pass-by-value register structs that can be manipulated in a functional style, eg: negate(swizzle(reg, X,X,X,X)) and per-opcode instruction functions, eg: emit_MOV( p, writemask(dst, 0x1), negate(src)); and similar. Additionally, the interface allows mixed emit of instructions and decls, which are sorted out internally to obey TGSI ordering. Immediates may be emitted at any time and are scanned against existing immediates to try and reduce redundancy. Not all TGSI functionality is accessible through this interface, but most or all of what mesa uses should be.
2009-08-14tgsi: Remove the ENDLOOP destination register.José Fonseca1-1/+1
2009-08-14tgsi: Output faulty opcode name when possible.José Fonseca1-2/+2
2009-08-13mesa: Don't call get_minmax_index on VBOs.José Fonseca1-10/+2
It can be very slow to do this on uncached memory. Let the driver do this if it deems necessary.
2009-07-30tgsi: Fix definitions of LOOP/ENDLOOP instructions.Michal Krol7-14/+20
2009-07-27softpipe: Only supports integer depth formats.José Fonseca1-0/+1
Attempts to use PIPE_FORMAT_Z32_FLOAT cause assertion failure.
2009-05-31python/retrace: Open bz2 files correctly.José Fonseca1-1/+1
2009-05-20util: Add missing include.José Fonseca1-0/+1
For assert macro.
2009-05-20trace: Make calls dumping threadsafe.José Fonseca1-0/+7
2009-05-20trace: Make call no global.José Fonseca1-3/+4
2009-05-20trace: Number calls.José Fonseca2-1/+12
2009-05-18python/retrace: Fix flush dirty logic.José Fonseca1-1/+1
2009-05-18python/retrace: Try to cope with failures creating textures.José Fonseca1-0/+6
2009-05-18python/retrace: Use colors on windows console.José Fonseca1-0/+70