summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary
AgeCommit message (Collapse)Author
2009-07-07gallium: Fixes for clobbering stencil values in combined depth/stencil textures.Michel Dänzer
Also fix one case where a 32 bit depth value was incorrectly converted to a combined depth/stencil value.
2009-07-01util: Increase OutputDebugStringA to 4k.José Fonseca
According to http://unixwiz.net/techtips/outputdebugstring.html that's how big the buffer is. The 512bytes limitation is in kernel mode.
2009-06-30util: Set PIPE_BUFFER_USAGE_FLUSH_EXPLICIT when calling ↵José Fonseca
buffer_flush_mapped_range.
2009-06-26tgsi: correct handling of return value from util_vsnprintfKeith Whitwell
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.
2009-06-26aux/indices: don't use 'prim' value once it is known to be badKeith Whitwell
Theoretical bugfix only - no known case where this might happen.
2009-06-18util: Add cast.José Fonseca
It is expected to loose precision here.
2009-06-18draw: Replace pointer arithmetic with cast.José Fonseca
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.
2009-06-18pipebuffer: Use a type consistently for sizes/offsets.José Fonseca
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.
2009-06-15rtasm: Use 32bit constant.José Fonseca
As we're only using 32bit bitmasks.
2009-06-10util: Single precision constants.José Fonseca
2009-06-08pipebuffer: Silence out of heap space debug printJakob Bornecrantz
2009-06-04tgsi: increase MAX_LABELS to 4096Brian Paul
2009-06-02util: Unsaved change missing from last commit.José Fonseca
2009-06-02util: Support Z24S8/Z24X8 -> unsigned conversion.José Fonseca
2009-06-02util: Fix 24 to 32 bit expansion binary arithmetic expression.José Fonseca
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.
2009-06-01gallium/draw: Free specialized versions of driver shadersKeith Whitwell
The pstipple, aaline and aapoint code would create specialized versions of shaders and upload them to the driver -- but never free them.
2009-06-01draw: free more token arraysKeith Whitwell
The AA line and point code also needs to free token arrays after building driver shaders.
2009-06-01draw: avoid leaking tokens when building pstipple fragment shaderKeith Whitwell
Add missing FREE() after MALLOC().
2009-06-01draw: reset extra_vp_outputs.slot to zero in widepoint_flush()Brian Paul
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.
2009-05-08util/upload: catch failures to map_range and return errorKeith Whitwell
Caller may be able to do something about this - eg flush and retry.
2009-05-08util: Limit the stack walk to avoid referencing undefined memory.José Fonseca
2009-05-08gallium/tgsi: hack around linker/archiver breakageKeith Whitwell
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.
2009-05-08gallium/draw: cope with unused vertex_elementsKeith Whitwell
2009-05-08pb: Save the stack backtrace when creating/mapping a debug buffer.José Fonseca
2009-05-08pb: Dump the fenced buffer sizes.José Fonseca
2009-05-05gallium: fix texcoords for cubemap mipmap generationBrian Paul
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.
2009-04-29tgsi: added tgsi_check_soa_dependencies() and related debug code (disabled)Brian Paul
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.
2009-04-28gallium/draw: add ability to print out active pipeline stagesKeith Whitwell
2009-04-28util/indices: remove debug printsKeith Whitwell
2009-04-27util: Remove unix includes.José Fonseca
2009-04-27util/time: add util_time_sleep() for windows userspaceKeith Whitwell
Somebody with a clue could probably do a better implemenation...
2009-04-24util: Add debug_printf_onceMicah Dowty
2009-04-24tgis: SSE code generator doesn't yet support indirect addressing of temp regsBrian Paul
Fall back to interpreter in this case.
2009-04-24pipebuffer: don't fail when validating mapped buffersKeith Whitwell
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.
2009-04-24util: Add more entry points for dumping to bmpJakob Bornecrantz
2009-04-22gallium: license, copyrightBrian Paul
2009-04-20util: don't set unused blend stateKeith Whitwell
Try to avoid creating multiple blend atoms.
2009-04-17util: flush stdout before emitting debug_printf on stderrKeith Whitwell
A lot of the mesa demos emit commentary on stdout, try to keep it in sync with the corresponding output from debug_printf().
2009-04-15util: Fix surface usageJakob Bornecrantz
2009-04-15gallium: new, simple RGBA surface create/destroy helpersBrian Paul
Use these for quickly creating an RGBA drawing surface.
2009-04-10tgsi/sse2: Cleanup NRM/NRM4 implementation.Michal Krol
Fix comments. Make sure .w is set to 1.0 for NRM. Optimise for non-.xyzw writemasks.
2009-04-10rtasm: Silence `static function not used' warning.Michal Krol
2009-04-10draw: Silence pointer-to-integer cast warning.Michal Krol
2009-04-10draw: Fix vertex_header initialisation.Michal Krol
2009-04-09tgsi/sse2: Fix build.Michal Krol
2009-04-09draw: Fix LIT instruction.Michal Krol
2009-04-09gallium: remove unneeded compressed=0 assignmentBrian Paul
2009-04-09tgsi/sse2: Fix ARL instruction.Michal Krol
2009-04-09tgsi/sse2: Fix LIT instruction.Michal Krol
2009-04-08gallium: handle the case of util_pack_z_stencil(format=PIPE_FORMAT_S8_UNORM)Brian Paul
Fixes failed assertion in glean fbo test.