summaryrefslogtreecommitdiffstats
path: root/src/gallium
Commit message (Collapse)AuthorAgeFilesLines
* wgl: Lookup framebuffers by HWND whenever possible.José Fonseca2009-07-031-0/+10
| | | | | Some applications create several HDCs for the same window, so spite the WGL API is geared towards HDCs it is not reliable searching by HDC.
* util: Increase OutputDebugStringA to 4k.José Fonseca2009-07-011-4/+2
| | | | | | | According to http://unixwiz.net/techtips/outputdebugstring.html that's how big the buffer is. The 512bytes limitation is in kernel mode.
* st/wgl: dummy implementation of wgl swapinterval extensionKeith Whitwell2009-07-014-0/+63
| | | | | | | Required as some applications retrieve and call these functions regardless of the fact that we don't advertise the extension and further more the results of wglGetProcAddress are NULL.
* gallium: fix the front face semanticsZack Rusin2009-07-013-16/+15
| | | | | | | | mesa allocates both frontface and pointcoord registers within the fog coordinate register, by using swizzling. to make it cleaner and easier for drivers we want each of them in its own register. so when doing compilation from the mesa IR to tgsi allocate new registers for both and add new semantics to the respective declarations.
* wgl: Optimize wglGetProcAddress.José Fonseca2009-07-011-6/+6
| | | | Do linear search only if prefix matches.
* util: Set PIPE_BUFFER_USAGE_FLUSH_EXPLICIT when calling ↵José Fonseca2009-06-301-1/+3
| | | | buffer_flush_mapped_range.
* gallium: New PIPE_BUFFER_USAGE_FLUSH_EXPLICIT flag for ↵José Fonseca2009-06-303-7/+18
| | | | | | | | | | | | | | | | 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.
* cell: PIPE_CAP_TGSI_CONT_SUPPORTED queryBrian Paul2009-06-261-0/+2
|
* softpipe: PIPE_CAP_TGSI_CONT_SUPPORTED queryBrian Paul2009-06-261-0/+2
|
* gallium: added PIPE_CAP_TGSI_CONT_SUPPORTEDBrian Paul2009-06-261-0/+1
|
* tgsi: correct handling of return value from util_vsnprintfKeith Whitwell2009-06-261-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 badKeith Whitwell2009-06-261-1/+1
| | | | Theoretical bugfix only - no known case where this might happen.
* wgl: Handle flush after a window is destroyed.José Fonseca2009-06-241-20/+21
| | | | Fixes assertion failure with conform.
* softpipe: return alpha=1 in shadow_compare() functionBrian Paul2009-06-191-0/+2
| | | | | | | 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).
* util: Add cast.José Fonseca2009-06-181-1/+1
| | | | It is expected to loose precision here.
* draw: Replace pointer arithmetic with cast.José Fonseca2009-06-181-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.
* trace: Use size_t consistently.José Fonseca2009-06-182-5/+5
|
* pipebuffer: Use a type consistently for sizes/offsets.José Fonseca2009-06-1812-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.
* wgl: Fix window resizing in multithread applications.José Fonseca2009-06-184-47/+112
| | | | | In multithreading stw_call_window_proc can be called by a thread other than the thread where the context is bound.
* wgl: Move all thread related code together.José Fonseca2009-06-185-58/+33
| | | | | | 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).
* st/glx: added null ptr check in Fake_glXCreatePixmap()Brian Paul2009-06-171-1/+1
| | | | Fixes segfault in progs/xdemos/glxgears_pixmap.c
* wgl: Factor out some repetitive code into inline functions.José Fonseca2009-06-171-29/+28
|
* softpipe: fix out of bounds quad rasterization bugBrian Paul2009-06-161-3/+6
| | | | | | | | 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.
* gallium: Avoid atomic ops / locking when src is dst.José Fonseca2009-06-161-14/+14
|
* python/tests: Add is_depth_stencil_format utility function.José Fonseca2009-06-151-0/+8
|
* python/tests: Cleanup texture_sample.José Fonseca2009-06-151-18/+32
|
* rtasm: Use 32bit constant.José Fonseca2009-06-151-3/+3
| | | | As we're only using 32bit bitmasks.
* gallium: Ensure assert macro is defined before being used in p_thread.hJosé Fonseca2009-06-151-0/+1
|
* softpipe: Fix softpipe_is_texture_referenced.José Fonseca2009-06-154-0/+22
| | | | | | | | | 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.
* dri st: Don't require the PIPE_TEXTURE_USAGE_RENDER_TARGET property for ↵Thomas Hellstrom2009-06-151-2/+0
| | | | | | depth- and stencil renderbuffers. Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
* gallium: Fix segfault and valgrind error introduced with commit ↵Thomas Hellstrom2009-06-151-1/+5
| | | | | | 3f2e006b759705abd7c409d30f9aeb1f2a75b83f Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
* python/retrace: Show the contents of the depth/stencil and surfaces ↵José Fonseca2009-06-111-10/+28
| | | | before/after transfers.
* python/retrace: Interpret is_texture_referenced/is_buffer_referenced.José Fonseca2009-06-111-0/+8
|
* wgl: Fix prototype.José Fonseca2009-06-111-1/+1
|
* gallium: New pf_is_depth_and_stencil / pf_is_depth_or_stencil inlines.José Fonseca2009-06-111-1/+11
|
* python/tests: Test sampling from a depth texture.José Fonseca2009-06-111-7/+216
|
* util: Single precision constants.José Fonseca2009-06-101-1/+1
|
* gallium: Shorthand functions for computing stride and sizes for a rect.José Fonseca2009-06-101-0/+12
|
* stw: ignore swapbuffer requests on singlebufferKeith Whitwell2009-06-091-0/+3
| | | | | | 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??
* pipebuffer: Silence out of heap space debug printJakob Bornecrantz2009-06-081-1/+1
|
* stw: If stfb not set don't call into mesaJakob Bornecrantz2009-06-081-1/+2
|
* softpipe: separate case for PIPE_PRIM_POLYGON in sp_vbuf_draw()Brian Paul2009-06-041-2/+12
| | | | | | | 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)
* softpipe: fix incorrect tri vertex order for PIPE_PRIM_POLYGON renderingBrian Paul2009-06-041-1/+1
| | | | | | This fixes incorrect front/back-face orientation. (cherry picked from commit a64bbdaa3e0b036a880d6db65ceb4a66205062f1)
* tgsi: increase MAX_LABELS to 4096Brian Paul2009-06-041-1/+1
|
* util: Unsaved change missing from last commit.José Fonseca2009-06-021-1/+1
|
* util: Support Z24S8/Z24X8 -> unsigned conversion.José Fonseca2009-06-021-0/+15
|
* util: Fix 24 to 32 bit expansion binary arithmetic expression.José Fonseca2009-06-021-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 shadersKeith Whitwell2009-06-013-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 arraysKeith Whitwell2009-06-012-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 shaderKeith Whitwell2009-06-011-0/+1
| | | | Add missing FREE() after MALLOC().