Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | util: fix typo. | José Fonseca | 2009-07-26 | 1 | -1/+1 |
| | |||||
* | tgsi: update some assertions | Brian Paul | 2009-07-10 | 1 | -4/+4 |
| | |||||
* | tgsi: tgsi: add semantic_names[] string for TGSI_SEMANTIC_FACE | Brian Paul | 2009-07-10 | 1 | -1/+6 |
| | | | | Same story as in the tgsi_dump.c code (see prev commit). | ||||
* | tgsi: add semantic_names[] string for TGSI_SEMANTIC_FACE | Brian Paul | 2009-07-10 | 1 | -1/+6 |
| | | | | | | | | Fixes TGSI dump output when front/back-face register is declared. Also, add some assertions to make sure the semantic/interpolate string arrays have as many elements as there are tokens in the p_shader_tokens.h file. That should catch problems like this in the future. | ||||
* | tgis: implement indirect addressing for destination registers | Brian Paul | 2009-07-10 | 6 | -11/+101 |
| | | | | Includes the TGSI interpreter, but not the SSE/PPC/etc code generators. | ||||
* | gallium: Fixes for clobbering stencil values in combined depth/stencil textures. | Michel Dänzer | 2009-07-07 | 1 | -1/+27 |
| | | | | | Also fix one case where a 32 bit depth value was incorrectly converted to a combined depth/stencil value. | ||||
* | util: Increase OutputDebugStringA to 4k. | José Fonseca | 2009-07-01 | 1 | -4/+2 |
| | | | | | | | According to http://unixwiz.net/techtips/outputdebugstring.html that's how big the buffer is. The 512bytes limitation is in kernel mode. | ||||
* | util: Set PIPE_BUFFER_USAGE_FLUSH_EXPLICIT when calling ↵ | José Fonseca | 2009-06-30 | 1 | -1/+3 |
| | | | | buffer_flush_mapped_range. | ||||
* | tgsi: correct handling of return value from util_vsnprintf | Keith Whitwell | 2009-06-26 | 1 | -5/+13 |
| | | | | | | | We were failing to deal with: - vsnprintf returns negative value on error. - vsnprintf returns the number of chars that *would* have been written on truncation. | ||||
* | aux/indices: don't use 'prim' value once it is known to be bad | Keith Whitwell | 2009-06-26 | 1 | -1/+1 |
| | | | | Theoretical bugfix only - no known case where this might happen. | ||||
* | util: Add cast. | José Fonseca | 2009-06-18 | 1 | -1/+1 |
| | | | | It is expected to loose precision here. | ||||
* | draw: Replace pointer arithmetic with cast. | José Fonseca | 2009-06-18 | 1 | -1/+2 |
| | | | | | | | Using uintptr_t as intermediate type for pointer -> integer conversions is easier to understand and does not cause any size mismatch warnings. uintptr_t is part of C99, and we already provide a suitable replacement definition for all platforms we care about. | ||||
* | pipebuffer: Use a type consistently for sizes/offsets. | José Fonseca | 2009-06-18 | 12 | -84/+90 |
| | | | | | | | Avoids warnings on 64bit builds. Use regular unsigned since that's what gallium expects, but use a typedef to facilitate possible changes in the future. | ||||
* | rtasm: Use 32bit constant. | José Fonseca | 2009-06-15 | 1 | -3/+3 |
| | | | | As we're only using 32bit bitmasks. | ||||
* | util: Single precision constants. | José Fonseca | 2009-06-10 | 1 | -1/+1 |
| | |||||
* | pipebuffer: Silence out of heap space debug print | Jakob Bornecrantz | 2009-06-08 | 1 | -1/+1 |
| | |||||
* | tgsi: increase MAX_LABELS to 4096 | Brian Paul | 2009-06-04 | 1 | -1/+1 |
| | |||||
* | util: Unsaved change missing from last commit. | José Fonseca | 2009-06-02 | 1 | -1/+1 |
| | |||||
* | util: Support Z24S8/Z24X8 -> unsigned conversion. | José Fonseca | 2009-06-02 | 1 | -0/+15 |
| | |||||
* | util: Fix 24 to 32 bit expansion binary arithmetic expression. | José Fonseca | 2009-06-02 | 1 | -1/+1 |
| | | | | | | When approaching y = x * 0xffffffff / 0xffffff with bit arithmetic, the 8 least significant bits of y should come from the 8 most significant bits of x. | ||||
* | gallium/draw: Free specialized versions of driver shaders | Keith Whitwell | 2009-06-01 | 3 | -0/+13 |
| | | | | | The pstipple, aaline and aapoint code would create specialized versions of shaders and upload them to the driver -- but never free them. | ||||
* | draw: free more token arrays | Keith Whitwell | 2009-06-01 | 2 | -5/+12 |
| | | | | | The AA line and point code also needs to free token arrays after building driver shaders. | ||||
* | draw: avoid leaking tokens when building pstipple fragment shader | Keith Whitwell | 2009-06-01 | 1 | -0/+1 |
| | | | | Add missing FREE() after MALLOC(). | ||||
* | draw: reset extra_vp_outputs.slot to zero in widepoint_flush() | Brian Paul | 2009-06-01 | 1 | -0/+1 |
| | | | | | | | | | | | Fixes a crash when clearing the window with a quad after drawing large points. We were asking the draw module how many vertex shader outputs there were and got 3 instead of 2. This led to creating vertices with too many attributes and trying to read invalid memory. We reset extra_vp_outputs.slot to zero in the aaline/aapoint stage's flush functions already. This omission was just an oversight in the wide_point stage. | ||||
* | util/upload: catch failures to map_range and return error | Keith Whitwell | 2009-05-08 | 1 | -13/+17 |
| | | | | Caller may be able to do something about this - eg flush and retry. | ||||
* | util: Limit the stack walk to avoid referencing undefined memory. | José Fonseca | 2009-05-08 | 1 | -1/+10 |
| | |||||
* | gallium/tgsi: hack around linker/archiver breakage | Keith Whitwell | 2009-05-08 | 1 | -0/+27 |
| | | | | | | | Add a dummy function which exists only so that tgsi_text_translate() doesn't get magic-ed out of the libtgsi.a archive by the build system. Don't remove unless you know this has been fixed - check on mingw/scons builds as well. | ||||
* | gallium/draw: cope with unused vertex_elements | Keith Whitwell | 2009-05-08 | 3 | -2/+9 |
| | |||||
* | pb: Save the stack backtrace when creating/mapping a debug buffer. | José Fonseca | 2009-05-08 | 1 | -1/+101 |
| | |||||
* | pb: Dump the fenced buffer sizes. | José Fonseca | 2009-05-08 | 1 | -4/+6 |
| | |||||
* | gallium: fix texcoords for cubemap mipmap generation | Brian Paul | 2009-05-05 | 1 | -10/+86 |
| | | | | | We need to use (s,t,r) cubemap coords when sampling from the cubemap texture so the rendered quad gets texture samples from the correct cube face. | ||||
* | tgsi: added tgsi_check_soa_dependencies() and related debug code (disabled) | Brian Paul | 2009-04-29 | 1 | -0/+62 |
| | | | | | | | The TGSI interpeter operates in SOA style. We need to check for data dependencies in instructions which read from and write to the same register. For now just adding some debug code to detect that condition. Actual fixes to follow. | ||||
* | gallium/draw: add ability to print out active pipeline stages | Keith Whitwell | 2009-04-28 | 15 | -1/+24 |
| | |||||
* | util/indices: remove debug prints | Keith Whitwell | 2009-04-28 | 2 | -161/+0 |
| | |||||
* | util: Remove unix includes. | José Fonseca | 2009-04-27 | 1 | -4/+0 |
| | |||||
* | util/time: add util_time_sleep() for windows userspace | Keith Whitwell | 2009-04-27 | 1 | -0/+9 |
| | | | | Somebody with a clue could probably do a better implemenation... | ||||
* | util: Add debug_printf_once | Micah Dowty | 2009-04-24 | 1 | -0/+16 |
| | |||||
* | tgis: SSE code generator doesn't yet support indirect addressing of temp regs | Brian Paul | 2009-04-24 | 1 | -0/+29 |
| | | | | Fall back to interpreter in this case. | ||||
* | pipebuffer: don't fail when validating mapped buffers | Keith Whitwell | 2009-04-24 | 1 | -4/+5 |
| | | | | | | This can be almost impossible to avoid - hopefully we won't encounter a situation where this is a true requirement. Would probably require drivers to flush between hardware and software vertex processing. | ||||
* | util: Add more entry points for dumping to bmp | Jakob Bornecrantz | 2009-04-24 | 2 | -18/+43 |
| | |||||
* | gallium: license, copyright | Brian Paul | 2009-04-22 | 2 | -0/+62 |
| | |||||
* | util: don't set unused blend state | Keith Whitwell | 2009-04-20 | 2 | -8/+0 |
| | | | | Try to avoid creating multiple blend atoms. | ||||
* | util: flush stdout before emitting debug_printf on stderr | Keith Whitwell | 2009-04-17 | 1 | -0/+2 |
| | | | | | A lot of the mesa demos emit commentary on stdout, try to keep it in sync with the corresponding output from debug_printf(). | ||||
* | util: Fix surface usage | Jakob Bornecrantz | 2009-04-15 | 1 | -2/+2 |
| | |||||
* | gallium: new, simple RGBA surface create/destroy helpers | Brian Paul | 2009-04-15 | 4 | -0/+167 |
| | | | | Use these for quickly creating an RGBA drawing surface. | ||||
* | tgsi/sse2: Cleanup NRM/NRM4 implementation. | Michal Krol | 2009-04-10 | 1 | -25/+76 |
| | | | | | | Fix comments. Make sure .w is set to 1.0 for NRM. Optimise for non-.xyzw writemasks. | ||||
* | rtasm: Silence `static function not used' warning. | Michal Krol | 2009-04-10 | 1 | -0/+2 |
| | |||||
* | draw: Silence pointer-to-integer cast warning. | Michal Krol | 2009-04-10 | 1 | -1/+1 |
| | |||||
* | draw: Fix vertex_header initialisation. | Michal Krol | 2009-04-10 | 1 | -1/+1 |
| | |||||
* | tgsi/sse2: Fix build. | Michal Krol | 2009-04-09 | 1 | -1/+1 |
| |