Patrice Mandin [Mon, 12 Oct 2009 19:03:26 +0000 (21:03 +0200)]
Add support for more 8 and 16 bits formats
Andre Maasikas [Mon, 12 Oct 2009 11:57:45 +0000 (14:57 +0300)]
r600: implement ProgramStringNotify
need this to properly test with piglit/glean vert/fragprog tests
copied mostly from r300, many thanks to osiris, nha, airlied, others...
Andre Maasikas [Mon, 12 Oct 2009 09:58:40 +0000 (12:58 +0300)]
r600: LIT dst.y gets value from src.x
seems I overlooked this when removing hardcoded swizzles for this
one previously
Andre Maasikas [Mon, 12 Oct 2009 09:20:26 +0000 (12:20 +0300)]
r600: DPH adds w comp of second operand, so set first one to 1 instead
Zack Rusin [Mon, 12 Oct 2009 01:52:10 +0000 (21:52 -0400)]
st/xorg: initialize pipe in the renderer
Zack Rusin [Fri, 9 Oct 2009 13:52:17 +0000 (09:52 -0400)]
st/xorg: lots of rendering and xv changes
extract all the rendering code to xorg_rendedrer, make both exa and xv
share that code. in the process cleanup the rendering code and implement
a lot more of the xv infrastructure.
Zack Rusin [Tue, 6 Oct 2009 16:38:47 +0000 (12:38 -0400)]
configs: fix some remains of the i915simple driver
Zack Rusin [Thu, 1 Oct 2009 01:22:48 +0000 (21:22 -0400)]
st/xorg: implement basics of xv
Nicolai Hähnle [Sun, 11 Oct 2009 10:40:07 +0000 (12:40 +0200)]
r300g: Fix fragment program constants upload on R300
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
Dave Airlie [Sun, 11 Oct 2009 09:12:24 +0000 (19:12 +1000)]
r300g: fix blending default state + alpha separate.
this makes the default state same as r300
Vinson Lee [Sat, 10 Oct 2009 16:45:16 +0000 (10:45 -0600)]
progs/perf: Fix MSVC build.
Brian Paul [Sat, 10 Oct 2009 15:25:34 +0000 (09:25 -0600)]
Merge branch 'mesa_7_6_branch'
Brian Paul [Sat, 10 Oct 2009 15:12:00 +0000 (09:12 -0600)]
softpipe: fix multi-drawbuffers regression
This is part of the fix for bug 24401.
Brian Paul [Sat, 10 Oct 2009 15:18:14 +0000 (09:18 -0600)]
softpipe: revert
564df9dc5f6335eb8dc68f3c69cf054d2142663c
This change silenced valgrind warnings but broke progs/tests/drawbuffers.
The problem is we don't know the surface's state when we start caching it
(it may or may not be initialized/cleared/etc). So "clearing" it here was
presumptuous. Leaving the code in place (but disabled) for reference and
when using valgrind.
Fixes bug 24401
Cooper Yuan [Sat, 10 Oct 2009 06:41:44 +0000 (14:41 +0800)]
r300g: add video surface create and destroy functions
Alex Deucher [Fri, 9 Oct 2009 19:44:32 +0000 (15:44 -0400)]
radeon: fix scissor regression
fixes fdo bug 24248
Brian Paul [Fri, 9 Oct 2009 19:23:07 +0000 (13:23 -0600)]
docs: fix aux buffer bug 24426
Brian Paul [Fri, 9 Oct 2009 19:20:28 +0000 (13:20 -0600)]
st/mesa: create aux buffers according to visual
Fixes bug 24426 for gallium.
Brian Paul [Fri, 9 Oct 2009 19:22:00 +0000 (13:22 -0600)]
mesa: fix incorrect assertion in _mesa_add_aux_renderbuffers()
Fixes bug 24426.
Brian Paul [Thu, 8 Oct 2009 15:17:13 +0000 (09:17 -0600)]
mesa: regenerated gl_mangle.h file
Jakob Bornecrantz [Thu, 8 Oct 2009 12:43:22 +0000 (14:43 +0200)]
st/xorg: Old X servers don't deal well with failing accesses
Jakob Bornecrantz [Thu, 8 Oct 2009 12:40:19 +0000 (14:40 +0200)]
st/xorg: More fallback debugging
Change the fallback debugging around a bit and do the old commit correctly
Jakob Bornecrantz [Thu, 8 Oct 2009 12:41:06 +0000 (14:41 +0200)]
Revert "st/xorg: Debug fallbacks for composite as well"
This commit included a change that should have been in
its own commit, and turns out that you can do what was
suposed to go in it in much better way as well.
This reverts commit
5080e8bea6ae5cdb116023a5e2d8dbbb762bd69d.
Jakob Bornecrantz [Thu, 8 Oct 2009 11:38:34 +0000 (13:38 +0200)]
st/xorg: Debug fallbacks for composite as well
Jakob Bornecrantz [Thu, 8 Oct 2009 11:13:36 +0000 (13:13 +0200)]
st/xorg: Use A8 textures for depth 8 pixmaps
There is no hardware out there that can render to I8 textures.
Jakob Bornecrantz [Thu, 8 Oct 2009 11:05:55 +0000 (13:05 +0200)]
st/xorg: Fix depth stencil buffers on old X servers
Sanity checking is for the weak.
Vinson Lee [Fri, 9 Oct 2009 13:24:04 +0000 (07:24 -0600)]
progs/tests: Add tests to Makefile.
Brian Paul [Thu, 8 Oct 2009 19:00:37 +0000 (13:00 -0600)]
softpipe: restore/fix print_vertex() debug helper
Jakob Bornecrantz [Fri, 9 Oct 2009 12:57:23 +0000 (13:57 +0100)]
progs/perf: Ignores!
José Fonseca [Fri, 9 Oct 2009 12:22:42 +0000 (13:22 +0100)]
util: Force ESI register for cpuid's ebx result.
Fixes a segfault and better code. Unfortunately using an arbitrary
register ("=r") causes the gcc to abort when the code is optimized saying
it can't satisfy the constraint. Setting seems to do the trick.
José Fonseca [Fri, 9 Oct 2009 10:29:33 +0000 (11:29 +0100)]
llvmpipe: Eliminate constant mapping/unmapping.
José Fonseca [Tue, 6 Oct 2009 15:59:07 +0000 (16:59 +0100)]
progs: Remove unused empty file.
José Fonseca [Mon, 5 Oct 2009 17:32:36 +0000 (18:32 +0100)]
gdi: Fix the build when llvmpipe is requested (the default) but llvm is not present.
Andre Maasikas [Fri, 9 Oct 2009 07:46:12 +0000 (10:46 +0300)]
r600: fixup KIL instruction a bit
- KILLGT takes 2 arguments
- arb KIL has no dst register
- add TODO about clause ending but currently piglit fp-kil passes and
does not hang the card
Brian Paul [Fri, 9 Oct 2009 02:49:32 +0000 (20:49 -0600)]
docs: bump libdrm version requirement
Probably need to bump other version requirements too...
Eric Anholt [Fri, 9 Oct 2009 00:18:12 +0000 (17:18 -0700)]
mesa: Bump the required libdrm version to reflect reality.
Not all drivers require the latest version, but distros are good at
tracking it since we've got a good record as far as not regressing, and
it sure beats having a weird compile failure in someone else's driver
later on.
Eric Anholt [Fri, 2 Oct 2009 01:16:52 +0000 (18:16 -0700)]
i965: Use bo_references for the state cache delete function.
This appears to shave about 3% off the CPU usage in cairo-gl for firefox.
Eric Anholt [Fri, 2 Oct 2009 00:53:12 +0000 (17:53 -0700)]
intel: Use new drm_intel_bo_references() to avoid flushing.
Brian Paul [Thu, 8 Oct 2009 18:50:42 +0000 (12:50 -0600)]
mesa: free display list state after freeing shared state
Fixes bug 24402.
Brian Paul [Thu, 8 Oct 2009 15:28:07 +0000 (09:28 -0600)]
Merge branch 'mesa_7_6_branch'
Conflicts:
src/mesa/drivers/common/meta.c
Vinson Lee [Thu, 8 Oct 2009 14:08:11 +0000 (08:08 -0600)]
progs/tests: Fix MSVC build.
Brian Paul [Wed, 7 Oct 2009 22:51:26 +0000 (16:51 -0600)]
mesa: clean up extended opcode code
Brian Paul [Wed, 7 Oct 2009 22:41:18 +0000 (16:41 -0600)]
mesa: move gl_list_instruction and gl_list_extensions to dlist.c
Brian Paul [Wed, 7 Oct 2009 22:32:25 +0000 (16:32 -0600)]
mesa: added _mesa_free_display_list_data()
Brian Paul [Wed, 7 Oct 2009 22:21:34 +0000 (16:21 -0600)]
mesa: clean-up display list mem allocation, fix NULL handling
The -1 term in alloc_instruction() foiled later NULL pointer checks.
Brian Paul [Wed, 7 Oct 2009 22:12:26 +0000 (16:12 -0600)]
main: replace ALLOC_INSTRUCTION macro with regular function
Brian Paul [Wed, 7 Oct 2009 22:03:04 +0000 (16:03 -0600)]
mesa: rename display list functions
_mesa_alloc_instruction() sounded like it was related to vertex/fragment
program instructions, but it wasn't.
Brian Paul [Wed, 7 Oct 2009 20:43:27 +0000 (14:43 -0600)]
gallium/xlib: call XQueryExtension() in glXQueryExtension()
See bug 24321.
Brian Paul [Wed, 7 Oct 2009 20:42:14 +0000 (14:42 -0600)]
mesa/xlib: call XQueryExtension() in glXQueryExtension()
See bug 24321.
Vinson Lee [Wed, 7 Oct 2009 20:29:23 +0000 (14:29 -0600)]
i915g: Fix MSVC build.
Brian Paul [Wed, 7 Oct 2009 20:07:49 +0000 (14:07 -0600)]
mesa: don't need to free textures, VBOs, etc. in _mesa_meta_free()
They're freed by the normal context deallocation code.
Fixes Blender crash, bug 24185.
Brian Paul [Wed, 7 Oct 2009 19:30:48 +0000 (13:30 -0600)]
softpipe: new comments
Brian Paul [Wed, 7 Oct 2009 19:21:57 +0000 (13:21 -0600)]
softpipe: whitespace and comment fixes
Brian Paul [Wed, 7 Oct 2009 19:17:20 +0000 (13:17 -0600)]
softpipe: prefix non-static functions with sp_
Joakim Sindholt [Wed, 7 Oct 2009 19:02:18 +0000 (21:02 +0200)]
r300compiler: fix scons build again
Nicolai Hähnle [Wed, 7 Oct 2009 18:45:08 +0000 (20:45 +0200)]
Merge branch 'master' into r300g-glsl
Conflicts:
src/gallium/drivers/r300/r300_tgsi_to_rc.c
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
Nicolai Hähnle [Wed, 7 Oct 2009 18:39:22 +0000 (20:39 +0200)]
Merge branch 'mesa_7_6_branch'
Nicolai Hähnle [Sat, 3 Oct 2009 14:30:16 +0000 (16:30 +0200)]
shader_api: Fix bounds checking of glUniform and glUniformMatrix
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Nicolai Hähnle [Sat, 3 Oct 2009 14:18:57 +0000 (16:18 +0200)]
prog_parameter: Document the fact that Size may be > 4
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
Keith Whitwell [Wed, 7 Oct 2009 16:50:03 +0000 (17:50 +0100)]
util: do some more util_blit_pixels cases without temporaries
When the source surface is pointing at a 2d texture with only one
mipmap level, use that directly rather than creating a temporary.
Probably want to cover more cases, but this is a start.
Keith Whitwell [Wed, 7 Oct 2009 16:48:45 +0000 (17:48 +0100)]
mesa/st: add missing mesa constant file name
There are many different names for constants in mesa, we were missing
one since the ureg rewrite.
Brian Paul [Wed, 7 Oct 2009 15:58:03 +0000 (09:58 -0600)]
st/mesa: pass pipe_screen, not pipe_context to st_choose_format() functions
These don't depend on context state, but use a screen pointer.
Brian Paul [Wed, 7 Oct 2009 15:41:00 +0000 (09:41 -0600)]
docs: fix glXQueryDrawable() bugs
Brian Paul [Wed, 7 Oct 2009 15:40:22 +0000 (09:40 -0600)]
mesa/xlib: fix glXQueryDrawable() bugs, see bug 24320
Brian Paul [Wed, 7 Oct 2009 15:40:04 +0000 (09:40 -0600)]
gallium/xlib: fix glXQueryDrawable() bugs, see bug 24320
Brian Paul [Wed, 7 Oct 2009 15:11:23 +0000 (09:11 -0600)]
progs/xdemos: test glXQueryDrawable()
Brian Paul [Wed, 7 Oct 2009 15:10:48 +0000 (09:10 -0600)]
progs/xdemos: fix swapped parameters to CreatePbuffer()
Michel Dänzer [Wed, 7 Oct 2009 14:36:39 +0000 (16:36 +0200)]
st/dri: Add missing front buffer case in dri_get_buffers().
This seems to help for compiz at least with some drivers.
Also add an assert(0) to catch unhandled cases in the future.
Brian Paul [Wed, 7 Oct 2009 14:07:53 +0000 (08:07 -0600)]
swrast: s/GLfloat/GLuint/ in bzero()
Brian Paul [Wed, 7 Oct 2009 01:05:23 +0000 (19:05 -0600)]
swrast: add missing returns
Vinson Lee [Wed, 7 Oct 2009 13:54:31 +0000 (07:54 -0600)]
progs/test: Fix MSVC build.
Brian Paul [Wed, 7 Oct 2009 13:45:15 +0000 (07:45 -0600)]
mesa/xlib: return 0 for errorBase, eventBase in glXQueryExtension()
A little better than leaving the values undefined, I think.
See bug 24321.
Brian Paul [Wed, 7 Oct 2009 13:43:12 +0000 (07:43 -0600)]
gallium/xlib: return 0 for errorBase, eventBase in glXQueryExtension()
A little better than leaving the values undefined, I think.
See bug 24321.
Jakob Bornecrantz [Wed, 7 Oct 2009 02:28:04 +0000 (03:28 +0100)]
i915g: Use buffer write instead of map for lit vertices
Jakob Bornecrantz [Wed, 7 Oct 2009 02:26:03 +0000 (03:26 +0100)]
i915g: Change order of buffer_write arguments
They now follow the pipe_buffer_write style,
its the gallium driver that sets the interface not
the winsys.
Jakob Bornecrantz [Wed, 7 Oct 2009 00:40:37 +0000 (01:40 +0100)]
i915g: Disable vbuf fifo and minor commenting of vbuf code
The vbuf fifo doesn't appear to help once the libdrm
reuse flag has been set.
Younes Manton [Wed, 7 Oct 2009 02:07:47 +0000 (22:07 -0400)]
nv04-nv40: Fix swizzle transfers for NPOT sizes.
Workarounds not necessary, SIFM can handle NPOT, we just weren't setting
dst dimensions properly. SIFM can't handle odd w,h though, that still
needs fixing.
Vinson Lee [Tue, 6 Oct 2009 22:02:47 +0000 (16:02 -0600)]
progs/tests: fix MSVC build.
Nicolai Hähnle [Tue, 6 Oct 2009 19:24:44 +0000 (21:24 +0200)]
r300/compiler: Fix R300 vertex program dumps
The source register field has 8 bits.
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
Nicolai Hähnle [Tue, 6 Oct 2009 19:13:27 +0000 (21:13 +0200)]
r300/compiler: Fix yet another regression in register allocation
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
Nicolai Hähnle [Tue, 6 Oct 2009 18:24:46 +0000 (20:24 +0200)]
r300/compiler: Fix a really stupid logic inversion in the generic dataflow code
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
Nicolai Hähnle [Tue, 6 Oct 2009 18:07:38 +0000 (20:07 +0200)]
r300/compiler: Fix regression in pair scheduling
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
Vinson Lee [Tue, 6 Oct 2009 01:42:58 +0000 (18:42 -0700)]
progs/perf: Fix MSVC build.
Andre Maasikas [Mon, 5 Oct 2009 06:38:52 +0000 (09:38 +0300)]
r600: r700PredictRenderSize can flush, so move index buffer setup after it
Ben Skeggs [Tue, 6 Oct 2009 03:55:48 +0000 (13:55 +1000)]
nv50: fix segfault when there's gaps in enabled texture units
Tested with progs/demos/multiarb.
Ben Skeggs [Tue, 6 Oct 2009 03:18:09 +0000 (13:18 +1000)]
nouveau: fix buffer object leak
Very apparent with resizing windows on DRI2.
Jakob Bornecrantz [Tue, 6 Oct 2009 01:30:43 +0000 (18:30 -0700)]
i915g: Add more defines to tweek batchbuffer
Jakob Bornecrantz [Tue, 6 Oct 2009 01:11:25 +0000 (18:11 -0700)]
i915g: Tweek vertexbuffer size
Brian Paul [Mon, 5 Oct 2009 20:43:38 +0000 (14:43 -0600)]
i965g: remove 965/brw files from XLIB_WINSYS_SOURCES
Brian Paul [Mon, 5 Oct 2009 20:42:08 +0000 (14:42 -0600)]
Merge branch 'mesa_7_6_branch'
Conflicts:
src/gallium/auxiliary/util/u_cpu_detect.c
Brian Paul [Mon, 5 Oct 2009 20:26:16 +0000 (14:26 -0600)]
intel: use driReadDrawable in do_copy_texsubimage()
Brian Paul [Mon, 5 Oct 2009 20:25:36 +0000 (14:25 -0600)]
intel: use driReadDrawable, not driDrawable in do_blit_readpixels()
Brian Paul [Mon, 5 Oct 2009 20:07:29 +0000 (14:07 -0600)]
intel: remove a buffer equality test in _mesa_make_current()
Before, if we called glXMakeCurrent() to change a context's window binding
while an FBO was bound, we weren't updating the intel->driDrawable and
intel->driReadDrawable fields. This could cause us to dereference a null
pointer elsewhere.
Jakob Bornecrantz [Tue, 29 Sep 2009 23:07:11 +0000 (16:07 -0700)]
i915g: Drop the simple sufix
None of the other driver have a silly sufix,
so just drop it. Nothing new added in this commit
or any other commit but this is better marketing.
Jakob Bornecrantz [Tue, 29 Sep 2009 17:22:15 +0000 (10:22 -0700)]
i965g: Drop i965simple
The driver never work with real hardware and has
bitrotted for quite some time now, might as well
drop it. If somebody wants to look at it just use git.
Joakim Sindholt [Mon, 5 Oct 2009 17:25:04 +0000 (19:25 +0200)]
r300g: fix scons build
So I didn't touch r300compiler, but r300g now compiles after having
declarations and code untangled. As nha so gently points out, we shouldn't
have to do this just to comply with MSVC compilers.
Brian Paul [Mon, 5 Oct 2009 17:10:31 +0000 (11:10 -0600)]
mesa: fix return value when clipping {Read,Draw}Pixels height <= 0
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
(cherry picked from master, commit
7aeaca33c331f70d507fc83583b13b8d9fc3e847)
Jon TURNEY [Fri, 24 Jul 2009 19:33:25 +0000 (20:33 +0100)]
Fix building of GLSL demos which use M_PI
Some <math.h> files do not define M_PI, in which case, provide our own definition
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
José Fonseca [Mon, 5 Oct 2009 15:45:38 +0000 (16:45 +0100)]
util: Improve the cpuid assembly.
No need to save ebx on 64bit. Use just xchgl. Refer to gcc's cpuid.h header.
Thanks to Uros Bizjak for pointing this out.
José Fonseca [Mon, 5 Oct 2009 10:05:34 +0000 (11:05 +0100)]
mesa: Copy textures' base format into wrapper renderbuffer.
Otherwise st_copy_texsubimage will fallback to software blit due to
inconsistent base formats.