aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
Commit message (Collapse)AuthorAgeFilesLines
* intel: Fallback to meta if we're asked to CopyTexImage2D from RGB to RGBAKristian Høgsberg2010-06-011-0/+8
| | | | | | | The pixel transfer rules state that we must set alpha to 1.0 in this case which we can't easily do with the blitter. We can do to passes: one that sets the alpha to 0xff and one that copies the RGB bits or we can just use the 3D engine. Neither approach seems worth it for this case.
* mesa: use split_location_offset() in GetUniform() functionsBrian Paul2010-06-011-47/+54
| | | | | | | | | | | Commit 5d0e136eff54a34258b5adaeda4cb267831e8234 exposed a long-standing bug in the glGetUniform*() code paths. We weren't properly decoding the location parameter. Fixes fd.o bug/regression 28344 Note: this patch should go into the 7.8 branch after the above-mentioned commit.
* mesa: Fix excess initializers in get.c table.Chia-I Wu2010-05-311-2/+2
|
* swrast: add TFP support to swrast.Dave Airlie2010-05-311-0/+69
| | | | | | | | | This adds TFP support to the swrast driver, with this I can run gnome-shell inside Xephyr slowly. I've no idea why I did it, and g-s has other rendering issues under swrast, but it might be useful to hook up llvmpipe later. I've no idea if I even want to commit it at this point. An enhanced version might just pass the pointer in the indirect rendering case and avoid the memcpy. Signed-off-by: Dave Airlie <[email protected]>
* gallium: fix TFP on galliumDave Airlie2010-05-311-0/+1
| | | | | | | | This fixes an uninitialised value use in the dri2 st when doing TFP. It uses the driContextPriv which isn't initialised at alloc time. Signed-off-by: Dave Airlie <[email protected]>
* intel: Initialize batch->reserved_space on allocationChris Wilson2010-05-311-2/+1
| | | | | | | | | | | | | | Fixes the assert (and buffer overrun): glknots: intel_batchbuffer.c:164: _intel_batchbuffer_flush: Assertion 'used >= batch->buf->size' failed. Reported in bug: Bug 28274 - xscreensaver's glknots hangs GPU (945GME/Pineview) https://bugs.freedesktop.org/show_bug.cgi?id=28274 Signed-off-by: Chris Wilson <[email protected]>
* Always define int32_t in compiler headers.Chia-I Wu2010-05-311-3/+1
| | | | eglplatform.h no longer defines int32_t.
* Update OpenGL ES headers.Chia-I Wu2010-05-312-5/+2
|
* mesa: Fix/add feature test to shader.c.Chia-I Wu2010-05-311-1/+3
| | | | | Those macros used by _mesa_init_shader_dispatch are not available when FEATURE_GL is not defined.
* vbo: Remove unnecessary header.Vinson Lee2010-05-301-1/+0
|
* r300: fix blits for textures of width/height greater than 2048 on r5xxMarek Olšák2010-05-291-5/+9
| | | | Yes I am fixing r300c ... who knew?
* i965: Add cache unit -> bo name mapping for more gen6 state objects.Eric Anholt2010-05-281-0/+3
| | | | This will help in bufmgr debugging and aub dumping.
* i965: fix PIPE_CONTROL command for gen6.Zou Nan hai2010-05-281-1/+10
| | | | | Signed-off-by: Zou Nan hai <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
* glsl: change uniform location/offset encodingBrian Paul2010-05-281-8/+30
| | | | | | | This lets Mesa work like other OpenGL implementations with regard to indexing uniform arrays. See comments for details. Note: this is a candidate for the 7.8 branch.
* st/mesa: advertise ARB_half_float_vertex when availableMarek Olšák2010-05-281-0/+7
| | | | Both softpipe and llvmpipe pass the piglit half float test.
* mesa: fix incorrect GL_DEPTH_STENCIL_ATTACHMENT format checkBrian Paul2010-05-271-3/+3
| | | | | | | | | We want to check the incoming renderbuffer format, not the (potentially non-existant) current attachment. Fixes segfault w/ fbotexture -ds2. NOTE: this will be applied to the 7.8 branch too.
* fbdev: some hacking to get the driver to compile (untested)Brian Paul2010-05-271-1/+7
|
* vbo: comments and whitespaceBrian Paul2010-05-271-7/+5
|
* vbo: remove unused prototypeBrian Paul2010-05-271-3/+0
|
* vbo: remove dead codeBrian Paul2010-05-271-21/+0
|
* vbo: update/add commentsBrian Paul2010-05-271-15/+62
|
* mesa: Remove unnecessary headers.Vinson Lee2010-05-271-5/+0
|
* mesa: remove unused includesBrian Paul2010-05-261-2/+0
|
* mesa: rewrite _mesa_get_handle() and add some commentsBrian Paul2010-05-261-6/+14
|
* mesa: move GLSL uniform functions into new source fileBrian Paul2010-05-266-858/+957
|
* st/mesa: Remove unnecessary headers.Vinson Lee2010-05-263-6/+0
|
* Enable hardware mipmap generation for radeon.Will Dyson2010-05-261-3/+8
| | | | | | | Use _mesa_meta_GenerateMipmap. It is Fast Enough(tm). Signed-off-by: Maciej Cencora <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* Fix image_matches_texture_obj() MaxLevel checkWill Dyson2010-05-261-4/+7
| | | | | | | | | When generating or uploading a new (higher) mipmap level for an image, we can need to allocate a miptree for a level greater than texObj->MaxLevel. Signed-off-by: Maciej Cencora <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* Fallback to software render if there is no miptree for an imageWill Dyson2010-05-261-4/+4
| | | | | | | | This can happen when checking if a software fallback for a higher level operation (such as GenerateMipmap) is needed. Signed-off-by: Maciej Cencora <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* i965: Add support for EXT_timer_query on Ironlake.Eric Anholt2010-05-262-24/+67
| | | | | | We could potentially do this on G45 as well, though the units are different. On 965, the timestamp is tied to hclk, which would make supporting it harder.
* intel: Handle decode of PIPE_CONTROL instructions.Eric Anholt2010-05-261-0/+27
|
* i965: Move Gen6 debugging emit_mi_flush into the Gen6 block.Eric Anholt2010-05-261-2/+2
|
* i965: Don't PIPE_CONTROL instruction cache flush.Eric Anholt2010-05-261-1/+0
| | | | | | | | | | | | This is a workaround for Ironlake errata. The emit_mi_flush is used for a few purposes: 1) Flushing write caches for RTT (including blit to texture) 2) Pipe fencing for sync objects 3) Spamming cache flushes to track down cache flush bugs Spamming cache flushes seems less important than following the docs, and we should probably do that with a different mechanism than the one for render cache flushes.
* i965: Emit MI_FLUSH before PSP on Ironlake for clip max threads errata.Eric Anholt2010-05-261-0/+7
|
* Revert the 'make static' part of 962f92611216e304c95e7c089b38d58066236014Kristian Høgsberg2010-05-262-81/+307
| | | | | | | | The es1 and es2 dispath table initialization code is generated from the API XML files and we can't easily share the dispatch table code setup. Keep the _mesa_init_shader_dispatch() part of the patch, but roll back the static-ization of shader entrypoints so es1 and es2 dispatch initialization still works.
* mesa: move all vertex array functions into varray.cBrian Paul2010-05-254-273/+274
|
* mesa: added _mesa_GetVertexAttribIiv / AttribIuiv()Brian Paul2010-05-252-54/+146
| | | | Refactor the code for all the glGetVertexAttrib() functions.
* mesa: added _mesa_VertexAttribIPointer()Brian Paul2010-05-252-0/+24
|
* mesa: new GL 3.0 VertexAttrib commandsBrian Paul2010-05-251-0/+174
| | | | Still need to plug in API dispatch...
* mesa: make a bunch of shader API functions staticBrian Paul2010-05-253-377/+173
|
* mesa: display list support for uint uniformsBrian Paul2010-05-251-1/+199
| | | | Still need to plug into dispatcher...
* mesa: consolidate some glUniform codeBrian Paul2010-05-251-78/+29
|
* mesa: unsigned int uniform functions (GL3)Brian Paul2010-05-252-0/+96
|
* mesa: support for unsigned int uniformsBrian Paul2010-05-251-1/+55
|
* r300/compiler: implement SGT+SLE opcodesMarek Olšák2010-05-261-0/+20
| | | | Reported-by: Gianluca Anzolin <[email protected]>
* r300/compiler: fix dumping r5xx vertex shadersMarek Olšák2010-05-261-0/+3
|
* r300/compiler: move hardware caps to the radeon_compiler base structMarek Olšák2010-05-266-18/+19
| | | | Needed for vertex shaders too.
* r300/compiler: shorten swizzle expressionsMarek Olšák2010-05-261-44/+65
|
* meta: Convert Z value from normalized to object-space in meta codeBrian Paul2010-05-241-4/+19
| | | | | | | | | | | | | | Convert Z from a normalized value in the range [0, 1] to an object-space Z coordinate in [-1, +1] so that drawing at the new Z position with the default/identity ortho projection results in the original Z value. Used by the meta-Clear, Draw/CopyPixels and Bitmap functions where the Z value comes from the clear value or raster position. Fixes piglit tests fdo23670-depth_test, quad-invariance and glsl-orangebook-ch06-bump as well as oglc zbfunc.c. https://bugs.freedesktop.org/show_bug.cgi?id=23670
* mesa: Reenable check for GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXTKristian Høgsberg2010-05-241-21/+23
| | | | | | | | The check was disabled when FEATURE_OES_framebuffer_object was enabled, since that used to mean we weren't implementing regular OpenGL semantics. Now that we can compile in support for multiple APIs, change the #ifdef to compile the check in when FEATURE_GL is enabled and enable the check for contexts that implement OpenGL at runtime.