summaryrefslogtreecommitdiffstats
path: root/src/mesa
Commit message (Collapse)AuthorAgeFilesLines
* st/mesa: attempt to fix TFP by using sampler views (v1)Dave Airlie2010-06-085-10/+63
| | | | | | | | | Okay I think this is good enough for now, I can't see any other reason for mesa to want to use a sampler view so lets just leave it at all the A->X conversions for now. I've been running gnome-shell under r300g with this for day or so and it seems fine. Signed-off-by: Dave Airlie <[email protected]>
* st/mesa: advertise GL_ARB_fragment_program_shadowMarek Olšák2010-06-061-0/+1
| | | | | There is nothing driver-specific about this one. I've also tested it just to be sure.
* st/mesa: trivially enable GL_ATI_texture_env_combine3Marek Olšák2010-06-051-0/+2
| | | | | | | | This extension is implemented in the texenv program. Gallium drivers pass patched glean/texCombine. (I am going to send the patch soon) Catalyst9.3 advertises this extension too so I don't see a reason we shouldn't.
* mesa: add ARB_texture_swizzle as alias of EXT_texture_swizzle, update relnotesMarek Olšák2010-06-051-0/+1
| | | | The specifications are identical.
* r300compiler: fix scons buildJoakim Sindholt2010-06-051-0/+2
|
* st/mesa: fix bug in depthstencil optimizing clear logicRoland Scheidegger2010-06-051-1/+2
|
* i915: Only emit a MI_FLUSH when the drawing rectangle offset changes.Chris Wilson2010-06-052-8/+24
| | | | Signed-off-by: Chris Wilson <[email protected]>
* i915: Fix off-by-one for drawing rectangle.Chris Wilson2010-06-051-2/+2
| | | | | | | | | | | | | | | The drawing rectangle is given in *inclusive* pixel values, so the range is only [0,2047]. Hence when rendering to a 2048 wide target, such as an extended desktop, we would issue an illegal instruction zeroing the draw area. Fixes: Bug 27408: Primary and Secondary display blanks in extended desktop mode with Compiz enabled https://bugs.freedesktop.org/show_bug.cgi?id=27408 Signed-off-by: Chris Wilson <[email protected]>
* i915: Inhibit render cache flush when changing drawing rectangle offset.Chris Wilson2010-06-051-1/+1
| | | | Signed-off-by: Chris Wilson <[email protected]>
* mesa/st: add support for EXT_texture_swizzle.Dave Airlie2010-06-052-2/+59
| | | | | | | | | | | This passes on r300g, the only bit I'm not really sure about is the handling of the sampler_view in st_atom_texture.c, I unreference it there if the swizzle value changes and I also have to create a new set of functions to create a new one since the u_sampler.c ones don't handle swizzle so much. adds r300g + softpipe enables, I think other drivers could pass easily enough. Signed-off-by: Dave Airlie <[email protected]>
* r300/compiler: implement SIN+COS+SCS for vertex shadersMarek Olšák2010-06-053-21/+76
|
* r300/compiler: implement SNE unwound for r3xx VS, natively for r5xx VSMarek Olšák2010-06-052-1/+37
|
* r300/compiler: implement SEQ unwound for r3xx VS, natively for r5xx VSMarek Olšák2010-06-052-0/+36
| | | | Fixes piglit/glsl-vs-vec4-indexing-4.
* r300/compiler: implement SFL for vertex shadersMarek Olšák2010-06-051-2/+3
| | | | And sort the "case" statements alphabetically.
* vbo: misc clean-upsBrian Paul2010-06-041-29/+36
|
* i915: Don't use XRGB8888 on 830 and 845.Eric Anholt2010-06-043-2/+18
| | | | | | | | | The support for XRGB8888 appeared in the 855 and 865, and this format is reserved on 830/845. This should fix a regression from b4a6169412819cc3a027c6a118f0537911145a30 that caused hangs in etracer on 845s. Bug #26557.
* i915: Clamp minimum lod to maximum texture level too.Eric Anholt2010-06-041-1/+3
| | | | | | | Otherwise, we'd run into minlod > maxlod, and the sampler would give us the undefined we asked for. Bug #24846. Fixes OGLC texlod.c.
* intel: Fix intel_compressed_num_bytes for FXT1 after I broke it.Eric Anholt2010-06-041-1/+1
| | | | | | | | Fixes piglit fxt1-teximage since 7554b83a21bd62b20df5a7327b69f08108ac9ab6, and also OGLC tests that hit FXT1 with a million other things. Bug #28184.
* Merge branch 'gallium-newclear'Roland Scheidegger2010-06-032-14/+32
|\ | | | | | | | | Conflicts: src/gallium/state_trackers/python/p_context.i
| * st/mesa: use new ability to clear only depth or stencilRoland Scheidegger2010-05-292-14/+32
| |
* | gallium: silence all debug_named_value related warningsJoakim Sindholt2010-06-031-9/+9
| |
* | r300/compiler: print opcode names instead of numbersMarek Olšák2010-06-033-8/+8
| |
* | dri/swrast: Remove unnecessary header.Vinson Lee2010-06-021-1/+0
| |
* | st/mesa: fix indirect addressing of input/output regsBrian Paul2010-06-021-4/+9
| | | | | | | | | | | | This fixes an issue that was missed with commit 9f544394c1d059ce09c8bb2b5e11f5e871c7915f. Fixes piglit glsl-texcoord-array.shader_test
* | intel: Remove a leftover DRI1/DRI2 conditionalKristian Høgsberg2010-06-021-7/+2
| |
* | glsl: handle indirectly indexed input registers in linkerBrian Paul2010-06-021-29/+108
| | | | | | | | | | | | | | | | | | | | For example, if the fragment shader reads gl_TexCoord[i] with a dynamic index we need to set all the InputsRead bits for all texcoords. We were already doing this for shader outputs. Refactored the later code so inputs and outputs are handled with similar code. Fixes a swrast failure with piglit's glsl-texcoord-array.shader_test
* | mesa: use BITFIELD64_BIT() macroBrian Paul2010-06-021-1/+1
| |
* | glsl: fix bad sanity-check assertionBrian Paul2010-06-021-1/+1
| |
* | mesa: whitespace and 80 column wrappingBrian Paul2010-06-021-3/+12
| |
* | shaders: Don't lose the param binding swizzle for single params.Eric Anholt2010-06-022-2/+2
| | | | | | | | | | | | | | | | | | Multiple item params are OK because we don't allow swizzles for them (in case you do array access to hit their elements, for example). For singles, though, using the swizzle can cut down on storage, we do want to allow a swizzled use of another param. Fixes OGLC texRect.c.
* | 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
| |