summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* wglSetPixelFormat should ignore the ppfd parameter.Morgan Armand2011-11-022-5/+11
| | | | Signed-off-by: José Fonseca <[email protected]>
* r300g: Fix queries on big endian hosts.Michel Dänzer2011-11-021-1/+2
| | | | | Signed-off-by: Michel Dänzer <[email protected]> Reviewed-by: Corbin Simpson <[email protected]>
* gallium/util: Add macros for converting from little endian to CPU byte order.Michel Dänzer2011-11-021-0/+13
| | | | | Signed-off-by: Michel Dänzer <[email protected]> Reviewed-by: Jose Fonseca <[email protected]>
* i965: Add support for integral vertex attributes.Paul Berry2011-11-023-4/+67
| | | | | | | | | | | | | | | | | | | When a vertex shader input attribute is declared with an integral type (e.g. ivec4), we need to ensure that the generated vertex shader code addresses the vertex attribute register using the proper register type. (Previously, we assumed all vertex shader input attributes were floating-point). In addition, when uploading vertex data that was specified with VertexAttribIPointer, we need to instruct the vertex fetch unit to convert the data to signed or unsigned int, rather than float. And when filling in the implied w=1 on a vector with less than 4 components, we need to fill it in with the integer representation of 1 rather than the floating-point representation of 1. Fixes piglit tests vs-attrib-{ivec4,uvec4}-precision. Reviewed-by: Kenneth Graunke <[email protected]>
* mesa: Set the "Integer" field of gl_client_array properly.Paul Berry2011-11-023-0/+3
| | | | | | | | | | | This patch ensures that gl_client_array::Integer is properly set to GL_TRUE for vertex attributes specified using glVertexAttribIPointer, and to GL_FALSE for vertex attributes specified using glVertexAttribPointer, so that the vertex attributes can be interpreted properly by driver back-ends. Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
* glsl: Fix type mismatch when incrementing or decrementing uint.Paul Berry2011-11-021-8/+24
| | | | | | | | | | | When converting an expression like "++x" to GLSL IR we were failing to account for the possibility that x might be an unsigned integral type. As a result the user would receive a bogus error message "Could not implicitly convert operands to arithmetic operator". Fixes piglit tests {vs,fs}-{increment,decrement}-uint. Reviewed-by: Kenneth Graunke <[email protected]>
* gallium/dri: Remove references to vblank.José Fonseca2011-11-022-7/+0
|
* Fix gallium dri compile and a merge conflictKristian Høgsberg2011-11-023-9/+1
|
* svga: Tag cursors with the scanout hintJakob Bornecrantz2011-11-021-2/+3
| | | | | Signed-off-by: Jakob Bornecrantz <[email protected]> Reviewed-by: Thomas Hellstrom <[email protected]>
* dri: Remove unused memops.hKristian Høgsberg2011-11-022-42/+0
|
* dri: Remove a few unused dri helper functionsKristian Høgsberg2011-11-021-118/+0
|
* dri: Remove unused dri texmem.cKristian Høgsberg2011-11-0210-1681/+3
|
* dri: Move _dri_texformat_* to radeon_texture.cKristian Høgsberg2011-11-023-27/+65
| | | | They are only used by the r200 driver now.
* r200: Don't use driIsTextureResident helperKristian Høgsberg2011-11-021-1/+0
| | | | | With DRI2, textures are always resident and using the DRI texmem helper here is broken anyway, since nothing else uses it.
* dri: Drop unused dri renderbuffer helper functionsKristian Høgsberg2011-11-027-259/+3
|
* dri: Move driUpdateFramebufferSize to dri_util.cKristian Høgsberg2011-11-023-21/+21
| | | | drirenderbuffer.[ch] is going bye-bye.
* dri: Remove unnecessary #defines and #includesKristian Høgsberg2011-11-021-8/+0
|
* dri: Remove unnecessary timestamp pointer indirectionKristian Høgsberg2011-11-026-19/+13
|
* dri: Remove unused fields from __DriverAPIRecKristian Høgsberg2011-11-021-34/+0
|
* dri: Remove dri2.enabled flagKristian Høgsberg2011-11-026-79/+9
| | | | DRI2 is always enabled now.
* dri: Remove DRI1 fields from DRI structsKristian Høgsberg2011-11-023-138/+2
|
* dri: Remove remaining DRI1 vblank codeKristian Høgsberg2011-11-028-523/+0
|
* dri: Remove cliprect information from __DRIdrawableKristian Høgsberg2011-11-029-113/+19
|
* dri: Drop unused driCalculateSwapUsageKristian Høgsberg2011-11-022-67/+0
|
* dri: Remove unused driIntersectAreaKristian Høgsberg2011-11-022-16/+0
|
* dri: Drop __driUtilUpdateDrawableInfo and helper macrosKristian Høgsberg2011-11-022-145/+0
|
* dri: Remove unused driSwapBuffersKristian Høgsberg2011-11-021-64/+1
|
* dri: Drop unused driCreateNewContextKristian Høgsberg2011-11-021-52/+0
|
* dri: Fold driCreateNewDrawable into dri2CreateNewDrawableKristian Høgsberg2011-11-021-55/+30
|
* dri: Remove unsused driCreateNewScreenKristian Høgsberg2011-11-021-93/+0
|
* dri: Remove unused __DRIswapInfoRecKristian Høgsberg2011-11-021-40/+0
|
* dri: Remove driMediaStreamCounterExtensionKristian Høgsberg2011-11-024-45/+0
| | | | Also DRI1-only.
* dri: Remove driSwapControlExtensionKristian Høgsberg2011-11-024-23/+1
| | | | DRI1-only as well.
* dri: Drop driCopySubBufferExtensionKristian Høgsberg2011-11-024-23/+0
| | | | Another DRI1-only extension.
* dri: Drop driReadDrawableExtensionKristian Høgsberg2011-11-025-13/+0
| | | | All DRI2 drivers support setting a separate read drawable.
* dri: Drop driLegacyExtensionKristian Høgsberg2011-11-024-11/+0
| | | | There are no DRI1 drivers left.
* st/dri/sw: add get_image inline helper similar to put_imageGeorge Sapountzis2011-11-021-4/+16
| | | | | TODO: check if GetImage works with passing the pitch as width, similar to PutImage, which avoids the extra copy, ala dri_sw_displaytarget_display() in src/gallium/winsys/sw/dri/dri_sw_winsys.c
* st/dri/sw: Fix incorrect castBenjamin Franzke2011-11-021-1/+1
| | | | | Missed one casting error due to rebase for commit 98aa2a8f725e44aec8bd998fe436a134e94f13bb.
* st/dri/sw: Implement texture_from_pixmapBenjamin Franzke2011-11-024-5/+60
| | | | | | | | | | This is a cleanup of commit 02f1b50987c0d24da3dcc36dbb44821c20d0660c. Update tex buffer using a dri_drawable hook from implemented in sw/drisw.c. This saves us the duplication of dri_drawable.c. CC: Stuart Abercrombie <[email protected]> CC: Stéphane Marchesin <[email protected]>
* Revert "Duplicate state_tracker/dri/sw/dri_drawable.c"Benjamin Franzke2011-11-021-269/+1
| | | | | | | This reverts commit 569bde1fa7d03fb7688d0d391b32e61e857ad44e. CC: Stuart Abercrombie <[email protected]> CC: Stéphane Marchesin <[email protected]>
* Revert "state_trackers/dri/sw: Implement texture_from_pixmap."Benjamin Franzke2011-11-021-43/+7
| | | | | | | This reverts commit 02f1b50987c0d24da3dcc36dbb44821c20d0660c. CC: Stuart Abercrombie <[email protected]> CC: Stéphane Marchesin <[email protected]>
* r600g: add comment about special shader exportsAlex Deucher2011-11-021-0/+32
| | | | | | | | | Certain exports (position, point size, etc.) are treated specially by the shader and not counted as generic exports. Note the exports and any relevant related state bits. Signed-off-by: Alex Deucher <[email protected]>
* r600g: take into account PSIZE output for spi mappingVadim Girlin2011-11-021-3/+6
| | | | | | | | | | | | Skip PSIZE and POSITION when counting VS outputs. Fixes https://bugs.freedesktop.org/show_bug.cgi?id=42435 Tested without regressions on evergreen. NOTE: this is a candidate for the 7.11 branch. Signed-off-by: Vadim Girlin <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* svga: Update state prototypes to return pipe_error.José Fonseca2011-11-026-25/+36
| | | | Fixes a bunch of prototype mismatch warnings..
* Build fix for -Werror=int-to-pointer-cast -Werror=pointer-to-int-castJeremy Huddleston2011-11-012-4/+4
| | | | Signed-off-by: Jeremy Huddleston <[email protected]>
* intel: fix potential segfault errorYuanhan Liu2011-11-021-2/+4
| | | | | Signed-off-by: Yuanhan Liu <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
* swrast: Use MapRenderbuffer for glReadPixels(GL_DEPTH_COMPONENT) fast-paths.Eric Anholt2011-11-011-68/+63
| | | | | | | | This fixes issues with the code playing fast and loose with types of buffers, and as a bonus avoids the wrappers that were previously used to pull bits out of packed depth/stencil buffers. Reviewed-by: Brian Paul <[email protected]>
* mesa: Make unpack_uint_z_row return 32 bits of data.Eric Anholt2011-11-011-25/+10
| | | | | | | | | Some of the return values were u32, some were 24 bits, and z16 returned 16 bits. The caller would have to do all the work of interpreting the format all over again. However, there are no callers of this function at this point. Reviewed-by: Brian Paul <[email protected]>
* nouveau: Add implementation of MapRenderbuffer.Eric Anholt2011-11-011-0/+46
| | | | | | | | Perhaps the easiest implementation, nouveau can directly map buffers even if tiled, and uses separate surfaces for its texture renderbuffers so we don't have to worry about that offset. Reviewed-by: Brian Paul <[email protected]>
* radeon: Add implementation of MapRenderbuffer.Eric Anholt2011-11-012-0/+98
| | | | | | | | | | | Unlike intel, we do a blit to/from GTT memory in order to untile/retile the renderbuffer data, since we don't have fence registers for accessing it. (There is software tiling code in radeon_tile.c, but it's unused and doesn't support macro tiling) Reviewed-by: Brian Paul <[email protected]>