Commit graph

32071 commits

Author SHA1 Message Date
Maciej Cencora
bd2239e497 progs/tests: use first color attachement
Allows the tests to be run on drivers that supports only one color attachement.
2010-03-09 21:46:14 +01:00
Maciej Cencora
67108b5d12 r300: enable HW accelerated gl(Read/Copy/Draw)Pixels 2010-03-09 21:46:14 +01:00
Maciej Cencora
ac2b7835d5 radeon: add hw accelerated glReadPixel support (not enabled yet) 2010-03-09 21:46:14 +01:00
José Fonseca
3355ae1925 glapi: Fix scons build -- list new file. 2010-03-09 20:43:13 +00:00
George Sapountzis
20ed2445b3 glapi: allow for any mangle prefix 2010-03-09 22:04:51 +02:00
George Sapountzis
54ba95a4de glapi: split out arch-specific code for entrypoints 2010-03-09 22:04:51 +02:00
George Sapountzis
2c8b5ffed9 glapi: mv table functions to glapi_getproc.c and add local header 2010-03-09 22:04:51 +02:00
George Sapountzis
fe14868d96 drop stray XFree86Server, XGLServer 2010-03-09 22:04:50 +02:00
Keith Whitwell
dc1e4cf87f svga: Don't do culling while the software pipeline is active.
It does it for us, and additionally introduces potentially
back-facing triangles.
2010-03-09 20:49:05 +01:00
Roland Scheidegger
a673dee455 mesa/st: initialize velements state properly
one variable is a bitfield where the rest is never written to, which caused
valgrind to complain. Might have caused cso to not recognize an already stored
state. Reported by Christoph Bumiller.
2010-03-09 20:33:21 +01:00
Roland Scheidegger
0d6b0b0d9d cso: don't forget to release vertex elements state 2010-03-09 20:33:21 +01:00
Marek Olšák
bf50d40f1b r300g: kill pf_component_count 2010-03-09 20:12:52 +01:00
Brian Paul
2ccae040a4 gallivm: checkpoint: nearest mipmap filtering
The LOD is computed from texcoord partial derivatives and used to
select a mipmap level.  Still some bugs in texel fetching.  Lots of
rough edges and unfinished parts but the basics are in place.

Lots of changes to the lp_bld_arit.c code to support non-vector/scalar
datatypes.
2010-03-09 09:40:41 -07:00
Roland Scheidegger
e0f10a6fca util: simplify util_format_get_nr_components helper
since the number of components is now stored in the pipe format description,
we obviously no longer need to figure this out ourselves.
2010-03-09 17:28:27 +01:00
José Fonseca
09a7c25e76 util: Use bitshift arithmetic for pack too. 2010-03-09 15:59:01 +00:00
Corbin Simpson
a73fd447d4 cso: Fix typo in assert. 2010-03-09 07:31:27 -08:00
Corbin Simpson
141c7cb0d6 r300g: Precalculate and CSO-bind PSC state. 2010-03-09 07:31:27 -08:00
Corbin Simpson
9c8cb12388 r300g: Cleanup old PSC code a bit. 2010-03-09 07:30:49 -08:00
Roland Scheidegger
4d02534628 identity: fix copy & paste error 2010-03-09 16:28:59 +01:00
Roland Scheidegger
22812421b5 r300g: fix gallium-vertexlementcso merge damage 2010-03-09 16:24:47 +01:00
Roland Scheidegger
685340a53e Merge branch 'gallium-vertexelementcso'
Conflicts:
	src/gallium/auxiliary/cso_cache/cso_context.c
	src/gallium/auxiliary/util/u_blit.c
	src/gallium/auxiliary/util/u_gen_mipmap.c
	src/gallium/drivers/i915/i915_context.h
	src/gallium/drivers/i965/brw_draw_upload.c
	src/gallium/drivers/r300/r300_blit.c
	src/gallium/drivers/r300/r300_context.h
	src/gallium/drivers/r300/r300_render.c
	src/gallium/drivers/r300/r300_state_derived.c
	src/mesa/state_tracker/st_cb_bitmap.c
	src/mesa/state_tracker/st_cb_clear.c
2010-03-09 15:59:40 +01:00
Roland Scheidegger
ae7b7bf1ed st/mesa: fix clear/drawpixels/bitmap for new cso vertex elements interface
somehow those got lost...
2010-03-09 15:09:01 +01:00
Roland Scheidegger
e8983f70b4 gallium: don't use flexible array members in drivers for vertex elements cso
While this c99 feature should work with most compilers, valgrind doesn't
really like it, and this only really saves some memory, we don't do this
in similar occasions (like the blend state) neither.
2010-03-09 14:23:00 +01:00
Roland Scheidegger
fe9f8536f1 auxiliary: fix vertex elements cso
potentially could have got a match even though the cso was different
(in case of different count and first few elements the same).
2010-03-09 14:19:29 +01:00
David Heidelberger
e497a58fad nv30: fix typo
Signed-off-by: David Heidelberger <d.okias@gmail.com>
2010-03-09 13:13:52 +00:00
Keith Whitwell
6f4ce4a4fe Squashed commit of gallium-no-texture-blanket
commit f90b3f01af82b9522067b1824e21709a6fb2d3af
Author: Keith Whitwell <keithw@vmware.com>
Date:   Mon Mar 8 14:39:44 2010 +0000

    gallium: remove p_screen::surface_buffer_create

    This isn't very useful without texture_blanket(), which has also been
    removed.

    Note that this function hasn't been removed from the old pipe_winsys
    (u_simple_screen) still used internally by some drivers (eg softpipe).

commit 6c462de39a4b9980a5f034a95e580efdfcb8173b
Author: Keith Whitwell <keithw@vmware.com>
Date:   Mon Mar 8 14:27:40 2010 +0000

    egl/x11: disable texture_blanket usage

commit b42da9160df9f47224e5b3291b972f41767aa6e5
Merge: 4be2436 3ca9336
Author: Keith Whitwell <keithw@vmware.com>
Date:   Mon Mar 8 14:27:24 2010 +0000

    Merge commit 'origin/master' into gallium-no-texture-blanket

    Conflicts:
    	src/gallium/drivers/svga/svga_screen_texture.c

commit 4be2436316929e3dfc55bc34d810920c06556b66
Author: Keith Whitwell <keithw@vmware.com>
Date:   Thu Mar 4 14:59:26 2010 +0000

    gallium: remove texture blanket call

    No longer needed, except for nouveau and egl/xll/native_ximage.c.

    Fix for nouveau is to keep the call, but move it to an internal
    function within nouveau.

    Fix for that egl/x11 relies on gallium-sw-api branch or its successor.

commit 69b6764330367d63c237d0bde9fb96435d0e0257
Author: Keith Whitwell <keithw@vmware.com>
Date:   Thu Mar 4 13:35:16 2010 +0000

    drm_api: wrap comment
2010-03-09 10:54:54 +00:00
Marek Olšák
821c830f11 r300g: remove hacks from translate_vertex_data_swizzle
The first part of the fix of BGRA vertex colors.
2010-03-09 04:56:11 +01:00
Marek Olšák
f3365bceb8 draw: quads never provoke the first vertex 2010-03-09 04:51:43 +01:00
Marek Olšák
558ce9964f softpipe: quads never provoke the first vertex 2010-03-09 04:51:43 +01:00
Marek Olšák
f2b8f14267 llvmpipe: quads never provoke the first vertex 2010-03-09 04:51:43 +01:00
Corbin Simpson
dd8f5c33f3 mesa/st: Gallium quads, by spec, never change provoking vertex.
Fixes glean/clipFlat for r300g.
2010-03-09 04:51:29 +01:00
Chia-I Wu
2b76e04a8c st/egl: Fix KMS build error after winsys handle change. 2010-03-09 11:34:37 +08:00
Brian Paul
4243ca1144 gallium: update some comments, remove others which are superfluous 2010-03-08 16:26:44 -07:00
Brian Paul
e799163dec vega: remove redundant DEFINES from .c.o rule 2010-03-08 16:26:44 -07:00
Brian Paul
f027d56129 llvmpipe/gallivm: checkpoint: array of pointers to mipmap levels
Change the texture data_ptr from just a single image pointer to an
array of image pointers, indexed by mipmap level.
We'll use this for mipmap filtering.
For now, the mipmap level is hard-coded to zero.
2010-03-08 16:26:44 -07:00
Brian Paul
891f7f4d52 nv: define NV30/40/50_MAX_TEXTURE_LEVELS 2010-03-08 16:26:44 -07:00
Brian Paul
ac2e849111 r300g: define R300_MAX_TEXTURE_LEVELS 2010-03-08 16:26:44 -07:00
Brian Paul
156585c12e svga: s/PIPE_MAX_TEXTURE_LEVELS/SVGA_MAX_TEXTURE_LEVELS/ 2010-03-08 16:26:44 -07:00
Brian Paul
e0d4f3202e i915g: define I915_MAX_TEXTURE_2D/3D_LEVELS 2010-03-08 16:26:44 -07:00
Brian Paul
e836f35369 i965g: define BRW_MAX_TEXTURE_2D/3D_LEVELS 2010-03-08 16:26:44 -07:00
Brian Paul
44eec28023 softpipe: define SP_MAX_TEXTURE_2D/3D_LEVELS 2010-03-08 16:26:43 -07:00
Brian Paul
d73fadf211 llvmpipe: define max texture levels 2010-03-08 16:26:43 -07:00
Brian Paul
e3b6f7b800 llvmpipe: rewrap for 80 columns 2010-03-08 16:26:43 -07:00
Eric Anholt
bc632d0437 i965: Fix up the handling of point sprite coordinate replacement.
The code was walking over the regs of pairs of attributes and checking
whether the attribute with a given reg index had point sprite enabled.
So the point sprite setup code was rarely even getting executed.
Instead, we need to determine which channels of a reg need point
sprite coordinate replacement.  In addition, it was multiplying the
attribute by 1/w, when it's supposed to cover (0, 1) in each direction
regardless of w, and it wasn't filling in the Z and W components of
the texcoord as specified.

Fixes piglit point-sprite and the spriteblast demo.  Bug #24431, #22245.
2010-03-08 14:23:18 -08:00
Zack Rusin
1d84808dc0 gallivm: fix a crash by making sure we set the has_mask flag correctly 2010-03-08 15:04:04 -05:00
Jesse Barnes
f2a035e5d8 xdemos/omlsync: improve OML WaitMsc test
Use the divisor/remainder for the WaitForMscOML call if a wait_interval
is passed.  Allows for testing of the WaitMSC paths in the server & DDX.
2010-03-08 11:31:26 -08:00
Brian Paul
e5923a1240 Merge branch '7.8' 2010-03-08 11:43:20 -07:00
Brian Paul
e1762fb870 softpipe: zero-out entire clear_flags array in sp_tile_cache_flush_clear()
Before, we only cleared the flags for the active tiles (the ones inside
the framebuffer bound).  The problem is if we later bound a different,
larger surface to the tile cache we'd have some stale clear-flags still
set (and mistakenly clear some tiles in the new surface).

Fixes fd.o bug 26932.
2010-03-08 11:39:51 -07:00
Brian Paul
80dc54e308 st/mesa: don't detach renderbuffer, surface in st_finish_render_texture()
There's no reason to release the renderbuffer from the framebuffer object
or release the gallium surface in this function (they're reference counted).
In fact, we don't want to do this because we may later use the texture as a
pixel source (ex: glBlitFramebuffer) and need the surface.

Fixes fd.o bug 26923 and is part of the fix for bug 26932.
2010-03-08 11:39:51 -07:00
Alex Deucher
df9bf78f88 r600: enable GL_ARB_pixel_buffer_object 2010-03-08 12:00:57 -05:00