Commit graph

34935 commits

Author SHA1 Message Date
José Fonseca
7b5931b313 softpipe: Adverstise (tgsi_exec's) shader limits. 2010-05-12 14:11:28 +01:00
José Fonseca
6ac93e469a mesa/st: Expose pipe driver's shader limits. 2010-05-12 14:11:28 +01:00
José Fonseca
bfc702d1e7 gallium: Add new fine grained PIPE_CAP_xx for shader limits.
PIPE_CAP_GLSL and PIPE_CAP_SM3 not removed yet, as opcode support is not
yet covered.
2010-05-12 14:11:28 +01:00
José Fonseca
e1238b5cad gallium: Make PIPE_CAP_xxx enums. 2010-05-12 14:11:28 +01:00
Chia-I Wu
084eadac88 st/egl: Link egl-apis to LLVM when enabled.
This is required when a client API (i.e. OpenGL) uses the draw module.
2010-05-12 15:48:11 +08:00
Chia-I Wu
d9f38e1a71 st/mesa: Do not use draw module in OpenGL ES build.
This removes references to symbols in draw module for OpenGL ES build.
As OpenGL ES does not support feedback/selection mode, draw module is
used in pathes that will never be reached.  However, if the symbols are
referenced, it will bloat the final shared libraries unnecessarily.
This is serious when LLVM is enabled.
2010-05-12 15:46:28 +08:00
Chia-I Wu
87cc2da16e mesa/es: Merge back to core mesa.
With the omit list gone, there are not too many differences in building
core mesa and ES overlay.  Remove the mesa/es and build both of them in
src/mesa/Makefile.
2010-05-12 15:03:42 +08:00
Chia-I Wu
8d5c83c467 mesa/es: Remove omit list.
vbo/vbo_save* are the last members on the omit list.  Test FEATURE_dlist
in the sources and remove the omit list.
2010-05-12 13:50:29 +08:00
Chia-I Wu
eb5100accc mesa: Make FEATURE_ATI_fragment_shader more modular.
This allows atifragshader.h to be used without knowing if
FEATURE_ATI_fragment_shader is enabled.  As a result, atifragshader.c is
removed from the omit list in ES overlay.
2010-05-12 13:46:53 +08:00
Chia-I Wu
82c6c31f55 mesa/es: Remove sources.mak.
All ES overlay sources have been merged into core Mesa.  Not much is
left in sources.mak so merge it into Makefile.
2010-05-12 13:08:09 +08:00
Chia-I Wu
cc289e2221 mesa/es: Update sources.mak and fix the build.
Remove sources that are feature-aware from the omit list.  x86 -O0 build
is ~12KiB smaller afther making those sources feature-aware.

Also, remove get.c from the omit list as get_es[12].c have been merged
to it.
2010-05-12 12:30:22 +08:00
Chia-I Wu
1975208919 st/mesa: Make st_cb_drawtex.h FEATURE_OES_draw_texture aware.
This change allows st_cb_drawtex.h to be used without knowing if
FEATURE_OES_draw_texture is enabled.
2010-05-12 12:12:58 +08:00
Chia-I Wu
278bca0db9 mesa: Add dummy _mesa_lookup_query_object to queryobj.h.
This allows condrender.c to be compiled without FEATURE_queryobj.
2010-05-12 12:12:58 +08:00
Chia-I Wu
e76e17d569 st/mesa: Make st_cb_blit.h FEATURE_EXT_framebuffer_blit aware.
This change allows st_cb_blit.h to be used without knowing if
FEATURE_EXT_framebuffer_blit is enabled.
2010-05-12 12:12:58 +08:00
Chia-I Wu
16775f4951 st/mesa: Make st_cb_queryobj.h FEATURE_queryobj aware.
This change allows st_cb_queryobj.h to be used without knowing if
FEATURE_queryobj is enabled.
2010-05-12 12:12:57 +08:00
Chia-I Wu
bcce57c2e9 st/mesa: Make FEATURE_feedback and FEATURE_rastpos more modular.
Make st_cb_feedback.h FEATURE_feedback aware and st_cb_rastpos.h
FEATURE_rastpos aware.  Move creation of selection/feedback draw context
to st_init_draw.
2010-05-12 12:12:57 +08:00
Chia-I Wu
14a92b26ff st/mesa: Make st_cb_{bitmap,drawpixels}.h FEATURE_drawpix aware.
This change allows st_cb_{bitmap,drawpixels}.h to be used without
knowing if FEATURE_drawpix is enabled.
2010-05-12 12:12:57 +08:00
Chia-I Wu
e33ad4999e st/mesa: Make st_cb_accum.h FEATURE_accum aware.
This change allows st_cb_accum.h to be used without knowing if
FEATURE_accum is enabled.
2010-05-12 12:12:57 +08:00
Chia-I Wu
b093016bd0 mesa: Make FEATURE_EXT_transform_feedback more modular.
This allows transformfeedback.h and st_cb_xformfb.h to be included and
used without knowing if FEATURE_EXT_transform_feedback is enabled.  Fix
build of ES overlay.
2010-05-12 12:12:56 +08:00
Brian Paul
903986ca12 glapi: fix generator scripts w.r.t. GLX_USE_APPLEGL
Commit 80b280db88 changed the .c files
instead of the .py generator scripts.
2010-05-11 21:40:56 -06:00
Brian Paul
6c06e2f053 glapi: added GL_ARB_transform_feedback2 entrypoints 2010-05-11 21:31:08 -06:00
Brian Paul
92a8ba844c progs/tests: disable invalid 3D texture compression tests 2010-05-11 21:27:31 -06:00
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