Commit Graph

34300 Commits

Author SHA1 Message Date
Brian Paul
67a27b82f5 progs/tests: fix a couple bugs in the getprocaddress.c test 2010-05-11 21:21:26 -06:00
Brian Paul
2236a301c3 mesa: fix error message strings 2010-05-11 21:13:21 -06:00
Brian Paul
0dc18841f5 progs/tests: update getprocaddress test since moving glapi files 2010-05-11 21:09:20 -06:00
Brian Paul
42d31bf390 mesa: added glGet code for GL_ARB_transform_feedback2 2010-05-11 21:08:08 -06:00
Brian Paul
d6164a2ef3 mesa: remove unused header 2010-05-11 21:07:16 -06:00
Brian Paul
19913a1a7c mesa: remove unused header 2010-05-11 21:07:00 -06:00
Brian Paul
a189b1c53b glew: update to version 1.5.4 2010-05-11 21:06:31 -06:00
Brian Paul
1e0afa695b st/mesa: update query code for transform feedback 2010-05-11 21:04:43 -06:00
Brian Paul
d35c2ca345 docs: update GL3.txt w/ GL 3.3, 4.0 lists 2010-05-11 21:03:53 -06:00
José Fonseca
edbc302ad6 mesa/st+tgsi: Provide a free callback to match with ureg_get_tokens().
This fixes crashes with the memory debugging routines on Windows.

NOTE: This is a candidate for the 7.8 stable branch
2010-05-11 21:27:22 +01:00
Vinson Lee
48f8a76549 autoconf: Also strip '\r' character in version scrape.
Fixes autoconf GCC conftest.c test on Cygwin.
2010-05-11 12:33:30 -07:00
Kristian Høgsberg
199b0894b5 mesa: Optimize get.c by using a table-driven approach 2010-05-11 14:06:22 -04:00
Brian Paul
08e443a1c8 llvmpipe: fix texture image size calculation
We were allocating too much memory for linear layouts.  The block_size
factor is already included in the row_stride and should not be used in
the img_stride calculation.  This is typically a 4x savings!
2010-05-11 11:52:06 -06:00
Brian Paul
fea189d6e4 llvmpipe: add a simple resource tracking/debug feature
If debug build, keep a linked list of all allocated resources (textures).
The llvmipe_print_resources() function can be called from a debugger to
print a list of all resources, their sizes, total size, etc.
2010-05-11 11:52:06 -06:00
Brian Paul
f70d900b80 llvmpipe: remove trailing whitespace, rewrap comment 2010-05-11 11:52:06 -06:00
José Fonseca
30a44ee4c5 scons: Export shouldn't be part of the if stanza. 2010-05-11 17:50:09 +01:00
Vinson Lee
4d374bf7eb st/mesa: Remove unnecessary header. 2010-05-11 09:03:42 -07:00
Kristian Høgsberg
f829e76d88 intel: Don't update renderbuffers in intelSetTexBuffer2 if we have invalidate 2010-05-11 10:32:40 -04:00
Kristian Høgsberg
db2993faa0 intel: Drop viewport hack when we can 2010-05-11 10:23:53 -04:00
Kristian Høgsberg
4258e3a2e1 glx: Provide the __DRI_USE_INVALIDATE extension to the driver when we can
When we have DRI2 protocol at least 2.3, we get an event from the
server when the back buffers get invalidated.  When that's the case
let the driver know that it can rely on invalidate instead of the
glViewport polling.
2010-05-11 10:23:53 -04:00
Kristian Høgsberg
97a6cbc6dd dri_interface.h: Add new __DRI_USE_INVALIDATE extension
The presence of this extension indicates to the DRI driver that the
loader will call invalidate in the __DRI2_FLUSH extension, whenever
the needs to query for new buffers.  This means that the DRI driver
can drop the polling in glViewport().
2010-05-11 10:23:53 -04:00
Michel Dänzer
1f6648418d st/xorg: Fix SCons build. 2010-05-11 16:02:42 +02:00
José Fonseca
b0427bedde mesa/st: Remove internal flushes from Mesa state tracker.
Now that transfers are context operations it is the driver's
responsibility to ensure that transfers happen in order with all other
context operations, so flushes and finishes inside Mesa should be no
longer necessary. The attached patch implements that.

This should proportionate significant improvements for hardware drivers
which are able to stream transfers in the command buffers.

You can use the softpipe/llvmpipe_flush_resource() as reference
implementation of the worst case scenario, where the driver is not able
to streamline transfers. But the expectation is that driver
implementators will want to avoid flushing as much as possible.
2010-05-11 14:00:01 +01:00
José Fonseca
d99a7497ed tests/graw: raw -> graw
for consistency
2010-05-11 07:03:27 +01:00
Vinson Lee
d74f525060 mesa: s/uint/GLuint/ in _mesa_BindTransformFeedback prototype.
From http://www.opengl.org/registry/api/glext.h
GLAPI void APIENTRY glBindTransformFeedback (GLenum target, GLuint id);

Fixes MinGW build.
2010-05-10 22:58:23 -07:00
Chia-I Wu
3ecb8c20f8 gallium: Add llvmpipe support to st/egl.
Update Makefile rules for st/egl.
2010-05-11 12:42:22 +08:00
Brian Paul
fef6e36e07 mesa: more transform feedback infrastructure
Includes GL_ARB_transform_feedback2 which encapsulates transform feedback
state in objects.
2010-05-10 21:11:25 -06:00
Kristian Høgsberg
12bc39f30c intel: Also flush front buffer in glFinish() 2010-05-10 21:10:24 -04:00
Brian Paul
7b937cf47f llvmpipe: enable PIPE_CAP_INDEP_BLEND_ENABLE
This enables the GL_EXT_draw_buffers2 extension.
Tested with progs/tests/drawbuffers2.
2010-05-10 17:04:20 -06:00
Brian Paul
f795735f42 llvmpipe: fix up indexing of blend/colormask state for render targets 2010-05-10 17:04:19 -06:00
Brian Paul
47ecb51eb4 llvmpipe: update image dump/debug code 2010-05-10 17:04:19 -06:00
Brian Paul
bd34f61a7a llvmpipe: add, update, rewrap comments 2010-05-10 17:04:19 -06:00
Brian Paul
e0b5c6f921 gallivm/llvmpipe: move an old comment to a better location 2010-05-10 17:04:19 -06:00
Brian Paul
4e9c3bbc60 st/mesa: rename vars, added comments 2010-05-10 17:04:19 -06:00
Vinson Lee
0bf1ddd60a i915: Drop intelFlush().
This was missed in commit c4775a27e3.
Fixes i915 build.
2010-05-10 15:42:15 -07:00
Kristian Høgsberg
c4775a27e3 intel: Drop intelFlush()
Now that intel_flush() deosn't use the needs_mi_flush argument, we can
finally drop one of the two flush functions.
2010-05-10 17:48:11 -04:00
Kristian Høgsberg
a86e4852f4 intel: Only flush fake front buffer on API level glFlush()
Without this patch, any old intel_flush() call will cause a round trip to
the server and do a copy from fake to real front.  We only actually
guarantee that frontbuffer results show up when glFlush() ia called, so
move the flushing to intel_glFlush().

We also need to flush fake to front before getting new buffers, but
we just handle that manually.
2010-05-10 17:48:11 -04:00
Kristian Høgsberg
d8cfdbe894 intel: Don't mark front buffer dirty if we're only reading
When we call intel_prepare_render() from intelReadPixels(), we'll mark
the front buffer dirty.  That's silly, since we're only reading from it
and marking it dirty will cause us to copy from fake front to front
eventually.

Just clear the dirty flag after doing the read.
2010-05-10 17:48:11 -04:00
Kristian Høgsberg
32942d2b1c intel: Mark frontbuffer dirty in intel_prepare_render()
Now that we have intel_prepare_render() in place, we can use it to mark
the front buffer dirty if we're rendering to the front buffer once we
get there.
2010-05-10 17:48:11 -04:00
Kristian Høgsberg
2d00d16da7 glx: Only call DRI2 invalidate when necessary
We only need this when the server may have swapped the buffers or
when we receive an invalidate event from the server.  The default
behaviour is still that the DRI driver will invalidate its own buffers
when glViewport is called.

https://bugs.freedesktop.org/show_bug.cgi?id=27277
2010-05-10 17:48:11 -04:00
José Fonseca
7c5152c199 svga: Fill in is_resource_referenced callback. 2010-05-10 21:23:39 +01:00
José Fonseca
533ec3f667 gallivm: Silent warning. 2010-05-10 21:23:39 +01:00
José Fonseca
54b94ee96a gallivm: Add missing lvalue. 2010-05-10 21:23:38 +01:00
Brian Paul
3b2bdde1b2 st/mesa: only set prevInstWrotePsiz if translating a vertex program 2010-05-10 12:35:52 -06:00
Brian Paul
adbbaae7b9 st/mesa: additional assertions in dst_register() 2010-05-10 12:35:52 -06:00
Jakob Bornecrantz
a1cc4c1924 i965g: link with software- wrapper winsys and drm api helper 2010-05-10 17:06:02 +01:00
Jakob Bornecrantz
40faa56efb gallium: Add software drm api helper to scons build 2010-05-10 17:06:02 +01:00
Jakob Bornecrantz
8ff59f0987 gallium: Add pipe wrapper software winsys to scons build 2010-05-10 17:06:02 +01:00
Roland Scheidegger
bb7205895e i965g: fix resource creation recursion bug 2010-05-10 17:42:28 +02:00
Roland Scheidegger
804daedd75 i965g: add brw_state_debug.c to SConscript 2010-05-10 17:42:12 +02:00