Brian Paul [Thu, 27 May 2010 15:25:07 +0000 (09:25 -0600)]
vbo: remove dead code
Brian Paul [Thu, 27 May 2010 15:24:43 +0000 (09:24 -0600)]
vbo: update/add comments
Vinson Lee [Thu, 27 May 2010 15:10:31 +0000 (08:10 -0700)]
mesa: Remove unnecessary headers.
Kristian Høgsberg [Thu, 27 May 2010 01:33:18 +0000 (21:33 -0400)]
egl: Return NULL if we fail to load a default driver
Brian Paul [Thu, 27 May 2010 04:42:13 +0000 (22:42 -0600)]
mesa: remove unused includes
Brian Paul [Thu, 27 May 2010 04:40:38 +0000 (22:40 -0600)]
mesa: rewrite _mesa_get_handle() and add some comments
Brian Paul [Thu, 27 May 2010 04:24:58 +0000 (22:24 -0600)]
mesa: move GLSL uniform functions into new source file
Vinson Lee [Thu, 27 May 2010 03:12:33 +0000 (20:12 -0700)]
st/mesa: Remove unnecessary headers.
Will Dyson [Tue, 25 May 2010 05:10:21 +0000 (01:10 -0400)]
Enable hardware mipmap generation for radeon.
Use _mesa_meta_GenerateMipmap. It is Fast Enough(tm).
Signed-off-by: Maciej Cencora <m.cencora@gmail.com>
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Will Dyson [Tue, 25 May 2010 05:10:20 +0000 (01:10 -0400)]
Fix image_matches_texture_obj() MaxLevel check
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 <m.cencora@gmail.com>
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Will Dyson [Tue, 25 May 2010 05:10:19 +0000 (01:10 -0400)]
Fallback to software render if there is no miptree for an image
This can happen when checking if a software fallback for a higher level
operation (such as GenerateMipmap) is needed.
Signed-off-by: Maciej Cencora <m.cencora@gmail.com>
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Marek Olšák [Wed, 26 May 2010 21:47:27 +0000 (23:47 +0200)]
r300g: decouple drawing code and two-sided stencil refvalue fallback
It's now more separate from the rest of the driver and it can be disabled
by commenting out just 1 line. Well, I couldn't make the previous version
work with SW TCL reliably, that's the reason of this little rework.
Marek Olšák [Wed, 26 May 2010 20:21:21 +0000 (22:21 +0200)]
r300g/swtcl: handle large index count properly
This fixes piglit/draw-elements.
Marek Olšák [Wed, 26 May 2010 18:59:46 +0000 (20:59 +0200)]
r300g/swtcl: force vertex prefetching for non-indexed primitives
Marek Olšák [Wed, 26 May 2010 18:53:56 +0000 (20:53 +0200)]
r300g/swtcl: move emitting AOS to prepare_for_rendering
Marek Olšák [Wed, 26 May 2010 17:36:21 +0000 (19:36 +0200)]
r300g/swtcl: vbo transfer sanity checks
Marek Olšák [Wed, 26 May 2010 17:29:58 +0000 (19:29 +0200)]
r300g: add get_cs_info winsys entrypoint, abandon check_cs
Marek Olšák [Wed, 26 May 2010 16:21:59 +0000 (18:21 +0200)]
r300g/swtcl: do not use u_upload_mgr and do not compute max_index
Marek Olšák [Wed, 26 May 2010 15:56:13 +0000 (17:56 +0200)]
r300g: remove unnecessary includes
Eric Anholt [Tue, 25 May 2010 22:32:54 +0000 (15:32 -0700)]
i965: Add support for EXT_timer_query on Ironlake.
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.
Eric Anholt [Tue, 25 May 2010 21:48:34 +0000 (14:48 -0700)]
intel: Handle decode of PIPE_CONTROL instructions.
Eric Anholt [Mon, 24 May 2010 04:12:56 +0000 (21:12 -0700)]
i965: Move Gen6 debugging emit_mi_flush into the Gen6 block.
Eric Anholt [Mon, 24 May 2010 04:00:13 +0000 (21:00 -0700)]
i965: Don't PIPE_CONTROL instruction cache flush.
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.
Eric Anholt [Mon, 24 May 2010 03:25:02 +0000 (20:25 -0700)]
i965: Emit MI_FLUSH before PSP on Ironlake for clip max threads errata.
Vinson Lee [Wed, 26 May 2010 18:13:23 +0000 (11:13 -0700)]
gallivm: Remove unnecessary headers.
Vinson Lee [Wed, 26 May 2010 17:59:57 +0000 (10:59 -0700)]
st/xorg: Remove unnecessary headers.
Vinson Lee [Wed, 26 May 2010 17:53:54 +0000 (10:53 -0700)]
util: Remove unnecessary headers.
Vinson Lee [Wed, 26 May 2010 17:24:36 +0000 (10:24 -0700)]
st/dri: Remove dri.c from SCons build.
This was missed in commit
f501230db3a94c9328b8e769d9c17b2c3792e19c.
Fixes SCons build.
Kristian Høgsberg [Wed, 26 May 2010 15:32:36 +0000 (11:32 -0400)]
Revert the 'make static' part of
962f92611216e304c95e7c089b38d58066236014
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.
Marek Olšák [Wed, 26 May 2010 14:39:14 +0000 (16:39 +0200)]
r300g: fix fence referencing
Brian Paul [Wed, 26 May 2010 03:42:13 +0000 (21:42 -0600)]
mesa: move all vertex array functions into varray.c
Brian Paul [Wed, 26 May 2010 03:13:06 +0000 (21:13 -0600)]
mesa: added _mesa_GetVertexAttribIiv / AttribIuiv()
Refactor the code for all the glGetVertexAttrib() functions.
Brian Paul [Wed, 26 May 2010 03:12:24 +0000 (21:12 -0600)]
mesa: added _mesa_VertexAttribIPointer()
Brian Paul [Wed, 26 May 2010 02:28:39 +0000 (20:28 -0600)]
mesa: new GL 3.0 VertexAttrib commands
Still need to plug in API dispatch...
Brian Paul [Wed, 26 May 2010 02:10:09 +0000 (20:10 -0600)]
mesa: make a bunch of shader API functions static
Brian Paul [Wed, 26 May 2010 01:20:32 +0000 (19:20 -0600)]
mesa: display list support for uint uniforms
Still need to plug into dispatcher...
Brian Paul [Wed, 26 May 2010 00:51:45 +0000 (18:51 -0600)]
mesa: consolidate some glUniform code
Brian Paul [Wed, 26 May 2010 00:40:09 +0000 (18:40 -0600)]
mesa: unsigned int uniform functions (GL3)
Brian Paul [Wed, 26 May 2010 00:39:47 +0000 (18:39 -0600)]
mesa: support for unsigned int uniforms
Marek Olšák [Wed, 26 May 2010 02:36:29 +0000 (04:36 +0200)]
r300/compiler: implement SGT+SLE opcodes
Reported-by: Gianluca Anzolin <gianluca@sottospazio.it>
Marek Olšák [Wed, 26 May 2010 02:20:18 +0000 (04:20 +0200)]
r300/compiler: fix dumping r5xx vertex shaders
Marek Olšák [Wed, 26 May 2010 02:18:27 +0000 (04:18 +0200)]
r300/compiler: move hardware caps to the radeon_compiler base struct
Needed for vertex shaders too.
Marek Olšák [Wed, 26 May 2010 01:24:00 +0000 (03:24 +0200)]
r300/compiler: shorten swizzle expressions
Dave Airlie [Wed, 26 May 2010 01:45:32 +0000 (11:45 +1000)]
rbug: add set sample mask passthrough.
This at least stops rbug segfaulting at startup.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Marek Olšák [Tue, 25 May 2010 23:41:22 +0000 (01:41 +0200)]
r300g: more efficient finish + fix comments
Marek Olšák [Tue, 25 May 2010 23:23:07 +0000 (01:23 +0200)]
r300g: implement fake but compliant fences
Marek Olšák [Tue, 25 May 2010 21:29:39 +0000 (23:29 +0200)]
r300g: add r300_init_render_functions, remove r300_render.h
Marek Olšák [Tue, 25 May 2010 21:23:41 +0000 (23:23 +0200)]
r300g: remove r300_query.h
Marek Olšák [Tue, 25 May 2010 21:21:41 +0000 (23:21 +0200)]
r300g: remove r300_flush.h
Marek Olšák [Tue, 25 May 2010 21:19:50 +0000 (23:19 +0200)]
r300g: add r300_init_blit_functions, remove r300_blit.h
Marek Olšák [Tue, 25 May 2010 21:10:49 +0000 (23:10 +0200)]
util: update comments at blitter
Marek Olšák [Tue, 25 May 2010 21:06:33 +0000 (23:06 +0200)]
util: fix indentation in blitter
Marek Olšák [Tue, 25 May 2010 21:05:29 +0000 (23:05 +0200)]
r300g,util: remove pipe_surface from the util_blitter_copy interface and clean up
Marek Olšák [Tue, 25 May 2010 19:28:19 +0000 (21:28 +0200)]
r300g,util: remove pipe_surface from the util_blitter_fill interface and clean up
Marek Olšák [Tue, 25 May 2010 18:59:13 +0000 (20:59 +0200)]
util: remove unused util_blitter_copy_surface
Jakob Bornecrantz [Tue, 25 May 2010 17:58:33 +0000 (18:58 +0100)]
drm_api: Remove type argument from create screen callback
With the removal of DRI1 support there where no use of this argument,
some drivers didn't even properly check it.
Jakob Bornecrantz [Tue, 25 May 2010 17:47:21 +0000 (18:47 +0100)]
gallium: Remove dri1_api.h and winsys support for DRI1
Since DRI1 support was dropped from st/dri it
makes no sense to keep this code around.
Jakob Bornecrantz [Tue, 25 May 2010 17:43:52 +0000 (18:43 +0100)]
st/dri: Remove DRI1 support
Nobody used it and the current code had been trough so many
changes yet never once being tested.
José Fonseca [Tue, 25 May 2010 13:39:25 +0000 (14:39 +0100)]
llvmpipe: Stop relying on PIPE_FLUSH_TEXTURE_CACHE/PIPE_FLUSH_RENDER_CACHE magic.
Flush means flush, i.e., all previous operations should be visible from
other contexts.
This does not imply unswizzling tiles, since unswizzling should be done on
a needed basis for any context.
José Fonseca [Tue, 25 May 2010 10:46:40 +0000 (11:46 +0100)]
gallivm: Choose an appropriate code generation optimization level.
'Default' unless GALLIVM_DEBUG=nopt option is set.
Brian Paul [Mon, 24 May 2010 22:20:30 +0000 (16:20 -0600)]
sw/xlib: NULL-out pointers after freeing image data
This fixes a double-free() error when not using a shared memory XImage.
The XDestroyImage() function frees the ximage->data buffer if non-NULL.
If we free it ourselves, we also need to NULL-out the pointer.
Brian Paul [Mon, 24 May 2010 22:19:21 +0000 (16:19 -0600)]
st/glx: check if deleting head of buffer list
Brian Paul [Mon, 24 May 2010 21:21:30 +0000 (17:21 -0400)]
meta: Convert Z value from normalized to object-space in meta code
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
Kristian Høgsberg [Mon, 24 May 2010 20:56:12 +0000 (16:56 -0400)]
mesa: Reenable check for GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT
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.
Brian Paul [Mon, 24 May 2010 17:43:55 +0000 (11:43 -0600)]
glsl: silence unused var warnings
José Fonseca [Mon, 24 May 2010 15:41:28 +0000 (16:41 +0100)]
llvmpipe: Also test compressed formats in lp_test_format()
José Fonseca [Mon, 24 May 2010 15:34:40 +0000 (16:34 +0100)]
llvmpipe: Fix lp_test_format on 32bit OSes.
Jakob Bornecrantz [Thu, 22 Apr 2010 20:21:24 +0000 (21:21 +0100)]
xorg-vmwgfx: Add vmwctrl proto
Kristian Høgsberg [Mon, 24 May 2010 14:01:38 +0000 (10:01 -0400)]
mesa: Handle FEATURE_es2_glsl differences at runtime too
Now that we can support different APIs at runtime, we need to check the
context for the API we're currently providing as well.
https://bugs.freedesktop.org/show_bug.cgi?id=28194
José Fonseca [Mon, 24 May 2010 13:24:06 +0000 (14:24 +0100)]
llvmpipe: Delete extraneous arugment too.
José Fonseca [Mon, 24 May 2010 12:56:53 +0000 (13:56 +0100)]
llvmpipe: Remove unused sincos_test_case struct.
Qicheng Christopher Li [Mon, 24 May 2010 12:44:13 +0000 (13:44 +0100)]
llvmpipe: Unit test for sin/cos that compares against reference implementation.
Signed-off-by: José Fonseca <jfonseca@vmware.com>
Qicheng Christopher Li [Mon, 24 May 2010 12:41:17 +0000 (13:41 +0100)]
gallivm: Efficient implementation of sin/cos.
Based on Julien Pommier's SSE and SSE2 algorithms.
Signed-off-by: José Fonseca <jfonseca@vmware.com>
Eric Anholt [Sun, 23 May 2010 20:39:42 +0000 (13:39 -0700)]
i965: Add support for all 8 possible ARB_draw_buffers in Mesa.
We should be able to do 16, but are limited by Mesa's static buffer
allocations.
Eric Anholt [Sun, 23 May 2010 20:35:50 +0000 (13:35 -0700)]
i965: Fix bit allocation for number of color regions for ARB_draw_buffers.
If you used all 4 color targets we currently support, we would see 0
and end up just writing the first output. Give enough bits that we
can do the maximum of 16.
Fixes piglit fbo-drawbuffers-maxtargets.
Marek Olšák [Sun, 23 May 2010 17:00:56 +0000 (19:00 +0200)]
util/blitter: allow NULL clear color
Marek Olšák [Sun, 23 May 2010 16:34:04 +0000 (18:34 +0200)]
r300g: extend compile error message
Marek Olšák [Sat, 22 May 2010 11:46:30 +0000 (13:46 +0200)]
r300g: fix dummy vertex shader compilation
Marek Olšák [Sat, 22 May 2010 11:45:20 +0000 (13:45 +0200)]
r300g: fix warnings
José Fonseca [Sat, 22 May 2010 15:14:20 +0000 (16:14 +0100)]
llvmpipe: Fill in slice_stride.
Chia-I Wu [Sat, 22 May 2010 04:12:32 +0000 (22:12 -0600)]
progs: Remove remaining EGL demos.
They have been moved to git+ssh://git.freedesktop.org/git/mesa/demos.
Kristian Høgsberg [Fri, 21 May 2010 15:51:33 +0000 (11:51 -0400)]
glx: Invalidate drawable in glXBindTexImageEXT() if we don't get events
When we don't get invalidate events, we need to invalidate a drawable
before using it for tfp to make sure we have uptodate buffers.
Kristian Høgsberg [Fri, 21 May 2010 14:36:56 +0000 (10:36 -0400)]
glx: Split tfp functions out to context vtable
This introduces a new per-context vtable, which lets us clean up all the
#ifdef's a bit and move the DRI2 specific implementation into dri2_glx.c.
Jakob Borncrantz [Fri, 21 May 2010 22:25:45 +0000 (23:25 +0100)]
st_api: Give get_egl_image arguments directly to the function
Brian Paul [Fri, 21 May 2010 20:57:29 +0000 (14:57 -0600)]
mesa: fix warnings about missing initializers in get.c table
Brian Paul [Fri, 21 May 2010 20:57:06 +0000 (14:57 -0600)]
st/mesa: remove unused var
Brian Paul [Fri, 21 May 2010 20:51:36 +0000 (14:51 -0600)]
st/glx: fix incorrect parameter type
Jakob Bornecrantz [Fri, 21 May 2010 19:37:23 +0000 (20:37 +0100)]
gallium: Fix invalidate framebuffer with old libGL libraries
Jakob Bornecrantz [Fri, 21 May 2010 19:25:54 +0000 (20:25 +0100)]
st_api: Add get param function to st_manager
Jakob Bornecrantz [Fri, 21 May 2010 20:24:10 +0000 (21:24 +0100)]
nouveau: Fix build after msaa merge
Brian Paul [Fri, 21 May 2010 20:12:11 +0000 (14:12 -0600)]
mesa: disable building the removed demos with scons
Brian Paul [Fri, 21 May 2010 20:11:40 +0000 (14:11 -0600)]
mesa: disable building the removed demos
This is a quick fix.
Eric Anholt [Fri, 21 May 2010 19:17:24 +0000 (12:17 -0700)]
Fix test for MESA_LLVM.
Eric Anholt [Fri, 21 May 2010 16:32:38 +0000 (09:32 -0700)]
Remove demos that have moved to git+ssh://git.freedesktop.org/git/mesa/demos.
The remaining programs are ones I've had difficulty finding a build
environment for to make the build system or are unit tests that should
probably live next to their code instead. Hopefully people can bring
over the build for remaining pieces they care about.
Roland Scheidegger [Fri, 21 May 2010 18:52:01 +0000 (20:52 +0200)]
rbug: fix breakage due to interface changes
Roland Scheidegger [Fri, 21 May 2010 18:02:22 +0000 (20:02 +0200)]
Merge branch 'gallium-msaa'
Conflicts:
src/mesa/state_tracker/st_gen_mipmap.c
src/mesa/state_tracker/st_texture.c
Patrice Mandin [Fri, 21 May 2010 17:09:08 +0000 (19:09 +0200)]
nouveau/nvfx: Fill more PIPE_CAP_MAX_ values
Signed-off-by: Patrice Mandin <patmandin@gmail.com>
David Shao [Fri, 21 May 2010 15:15:01 +0000 (08:15 -0700)]
Add __DragonFly__ in querymatrix for fpclassify()
Signed-off-by: Brian Paul <brianp@vmware.com>
Brian Paul [Wed, 19 May 2010 17:23:26 +0000 (11:23 -0600)]
progs/tests: print more info in copypixrate.c
Brian Paul [Fri, 21 May 2010 15:51:42 +0000 (09:51 -0600)]
docs: update 7.8.2 relnotes with Cell driver fixes