summaryrefslogtreecommitdiff
path: root/src/gallium
AgeCommit message (Collapse)Author
2009-07-01wgl: Optimize wglGetProcAddress.José Fonseca
Do linear search only if prefix matches.
2009-06-30util: Set PIPE_BUFFER_USAGE_FLUSH_EXPLICIT when calling ↵José Fonseca
buffer_flush_mapped_range.
2009-06-30gallium: New PIPE_BUFFER_USAGE_FLUSH_EXPLICIT flag for ↵José Fonseca
buffer_flush_mapped_range. When a buffer was mapped for write and no explicit flush range was provided the existing semantics were that the whole buffer would be flushed, mostly for backwards compatability with non map-buffer-range aware code. However if the buffer was mapped/unmapped with nothing really written -- something that often happens with the vbo -- we were unnecessarily assuming that the whole buffer was written. The new PIPE_BUFFER_USAGE_FLUSH_EXPLICIT flag (based from ARB_map_buffer_range 's GL_MAP_FLUSH_EXPLICIT_BIT flag) allows to clearly distinguish the legacy usage from the nothing written usage.
2009-06-26cell: PIPE_CAP_TGSI_CONT_SUPPORTED queryBrian Paul
2009-06-26softpipe: PIPE_CAP_TGSI_CONT_SUPPORTED queryBrian Paul
2009-06-26gallium: added PIPE_CAP_TGSI_CONT_SUPPORTEDBrian Paul
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-24wgl: Handle flush after a window is destroyed.José Fonseca
Fixes assertion failure with conform.
2009-06-19softpipe: return alpha=1 in shadow_compare() functionBrian Paul
The alpha value wasn't set at all before so we got unpredictable results. Note that we don't currently obey GL_DEPTH_TEXTURE_MODE in the state tracker. For now, we return the result in the default mode (r,r,r,1).
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-18trace: Use size_t consistently.José Fonseca
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-18wgl: Fix window resizing in multithread applications.José Fonseca
In multithreading stw_call_window_proc can be called by a thread other than the thread where the context is bound.
2009-06-18wgl: Move all thread related code together.José Fonseca
Not only for cosmetic reasons, but also because we need to set the SetWindowsHookEx hook for threads created before the DllMain is called (threads for each we don't get the DLL_THREAD_ATTACH notification).
2009-06-17st/glx: added null ptr check in Fake_glXCreatePixmap()Brian Paul
Fixes segfault in progs/xdemos/glxgears_pixmap.c
2009-06-17wgl: Factor out some repetitive code into inline functions.José Fonseca
2009-06-16softpipe: fix out of bounds quad rasterization bugBrian Paul
For some triangles we can generate quads which lie just outside the surface bounds. Just check the quad's mask before trying to emit/process the quad. Fixes failed assertion in Lightsmark.
2009-06-16gallium: Avoid atomic ops / locking when src is dst.José Fonseca
2009-06-15python/tests: Add is_depth_stencil_format utility function.José Fonseca
2009-06-15python/tests: Cleanup texture_sample.José Fonseca
2009-06-15rtasm: Use 32bit constant.José Fonseca
As we're only using 32bit bitmasks.
2009-06-15gallium: Ensure assert macro is defined before being used in p_thread.hJosé Fonseca
2009-06-15softpipe: Fix softpipe_is_texture_referenced.José Fonseca
Render results are only visible when the render cache is flushed. softpipe_is_texture_referenced must reflect that or transfers to/from the textures bound in the framebuffer won't be proceeded of the necessary flush, causing transfer data to be outdated/clobbered. This fixes conform drawpix test with softpipe.
2009-06-15dri st: Don't require the PIPE_TEXTURE_USAGE_RENDER_TARGET property for ↵Thomas Hellstrom
depth- and stencil renderbuffers. Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
2009-06-15gallium: Fix segfault and valgrind error introduced with commit ↵Thomas Hellstrom
3f2e006b759705abd7c409d30f9aeb1f2a75b83f Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
2009-06-11python/retrace: Show the contents of the depth/stencil and surfaces ↵José Fonseca
before/after transfers.
2009-06-11python/retrace: Interpret is_texture_referenced/is_buffer_referenced.José Fonseca
2009-06-11wgl: Fix prototype.José Fonseca
2009-06-11gallium: New pf_is_depth_and_stencil / pf_is_depth_or_stencil inlines.José Fonseca
2009-06-11python/tests: Test sampling from a depth texture.José Fonseca
2009-06-10util: Single precision constants.José Fonseca
2009-06-10gallium: Shorthand functions for computing stride and sizes for a rect.José Fonseca
2009-06-09stw: ignore swapbuffer requests on singlebufferKeith Whitwell
Return TRUE in this case. Returning FALSE seems to result in mis-rendering -- possibly opengl32.dll is trying to compensate by doing a software blit??
2009-06-08pipebuffer: Silence out of heap space debug printJakob Bornecrantz
2009-06-08stw: If stfb not set don't call into mesaJakob Bornecrantz
2009-06-04softpipe: separate case for PIPE_PRIM_POLYGON in sp_vbuf_draw()Brian Paul
Because of flat shading, we can't use same code as PIPE_PRIM_TRIANGLE_FAN. This is a follow-on to commit a59575d8fbe8b0ca053cc8366ce7a42bc660158a. (cherry picked from commit 086ecea179ed572c89aa77c5f465671a5cef87a7)
2009-06-04softpipe: fix incorrect tri vertex order for PIPE_PRIM_POLYGON renderingBrian Paul
This fixes incorrect front/back-face orientation. (cherry picked from commit a64bbdaa3e0b036a880d6db65ceb4a66205062f1)
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-01wgl: Destroy the framebuffer when the window is destroyed.José Fonseca
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-31wgl: Cleanup framebuffer destruction logic.José Fonseca
2009-05-31wgl: Ensure we only create framebuffers for HDC associated with a window.José Fonseca