Commit graph

31449 commits

Author SHA1 Message Date
Chia-I Wu
27d260b410 glapi: Move src/mesa/main/dispatch.c to glapi and rename.
main/dispatch.c is a glapi source file.  It is part of GLAPI_SOURCES in
sources.mak and part of glapi_sources in SConscript.  This commit moves
it to glapi/ and renames it to glapi_dispatch.c.
2010-02-25 21:32:58 +08:00
Chia-I Wu
4cb13b433c glapi: Generated GLX sources should use glapidispatch.h.
Fix glX_proto_recv.py and glX_proto_send.py, and regenerate the sources.
2010-02-25 21:32:45 +08:00
Chia-I Wu
2be1fcaafe mesa: Remove unused Makefile.{ugl,win}. 2010-02-25 21:30:51 +08:00
Chia-I Wu
6e28a4e0bc st/egl: Reduce validation round-trips in DRI2 backend.
This is similar to the changes to reduce the round-trips in ximage
backend.

When the server supports DRI_InvalidateBuffers, the event is used to
update the server stamp (this path is not tested).  Otherwise, the
server stamp is updated when flush_frontbuffer or swap_buffers is
called.  This makes sure at least the client APIs get the new buffers
when a new frame is started while skipping all round-trips during the
drawing.
2010-02-25 21:29:37 +08:00
Chia-I Wu
33b92471a7 st/egl: Reduce validation round-trips in ximage backend.
ximage_surface_validate is called several times per frame.  This commit
adds the client and server stamps to reduce the round-trips to the
server.  The idea is to bump the server stamp when flush_frontbuffer or
swap_buffers is called, and to skip the round-trip when the client stamp
is equal to the server stamp.  This makes sure the client APIs get the
new buffers when a new frame is started while skipping all round-trips
during the drawing.  To make this work, egl_g3d_validate_context is no
longer called after swap_buffers.
2010-02-25 21:29:37 +08:00
Chia-I Wu
29ec53d843 st/egl: Refactor dri2_surface_get_buffers.
Add dri2_surface_process_drawable_buffers to process the buffers
returned by the server.
2010-02-25 21:29:37 +08:00
Chia-I Wu
545ac97f9b st/egl: Add dri2InvalidateBuffers.
src/glx/dri2.c will call dri2InvalidateBuffers when
DRI2_InvalidateBuffers event is received.  This fixes a missing symbol
error, and paves the way for event-based validation.
2010-02-25 21:29:36 +08:00
Vinson Lee
cc7904ffa5 util: Assert that pointer is not null before dereferencing. 2010-02-25 02:42:41 -08:00
Vinson Lee
d553479cc4 mesa: Remove dead error condition. 2010-02-25 02:26:18 -08:00
Vinson Lee
9be414f4b9 glu/sgi: Set freed pointer to NULL. 2010-02-25 02:19:00 -08:00
Corbin Simpson
686f69bd13 r300g: Atomize vertex shader. 2010-02-24 20:02:59 -08:00
Corbin Simpson
f05d4526e3 r300g: Move CALLOCs to correct place. 2010-02-24 19:53:47 -08:00
Marek Olšák
e6632b4bf7 r300g: prevent CS overflow when emitting the draw packets
Signed-off-by: Corbin Simpson <MostAwesomeDude@gmail.com>
2010-02-24 17:11:47 -08:00
Kristian Høgsberg
b7041db8f8 xeglgears: Update help text 2010-02-24 20:08:54 -05:00
Brian Paul
bc04ae21c1 llvmpipe: clean up rasterization threads upon context destruction
Fixes glean hang, bug 26536.
2010-02-24 17:30:43 -07:00
Brian Paul
072aeb57bd vbo: remove dead code 2010-02-24 16:13:46 -07:00
Brian Paul
778276a4dd r300g: remove invalid .PHONY line
The $(COMPILER_ARCHIVE) target is not a phony target.
This solves the unconditional re-making of libr300.a
2010-02-24 15:49:13 -07:00
Brian Paul
1332ee5487 gallium: remove extra -I paths from Makefile.template 2010-02-24 15:09:57 -07:00
Vinson Lee
17efc8c05c mesa: Fix SCons build. 2010-02-24 14:00:30 -08:00
Brian Paul
f393d95ff2 dri: remove old assertion (see bug 26734)
(cherry picked from commit 293f4d51b4)
2010-02-24 14:06:52 -07:00
Brian Paul
5046f2c195 llvmpipe: more lp_rasterizer_task parameter passing 2010-02-24 13:54:25 -07:00
Brian Paul
1c9db3c57f llvmpipe: pass fewer parameters to rasterization functions 2010-02-24 13:54:25 -07:00
Brian Paul
ab71a5e4c9 llvmpipe: added some assertions 2010-02-24 13:54:25 -07:00
Kristian Høgsberg
f272a780af xeglgears: Remove borrowed GL_OES_EGL_image types
These are now in gl.h.
2010-02-24 14:36:56 -05:00
Kristian Høgsberg
61cc18a866 xeglgears: Add test case for texturing from an EGLImage 2010-02-24 14:28:42 -05:00
Kristian Høgsberg
f4e7d1b1e5 egl_dri2: Implement EGL_KHR_image and EGL_KHR_image_pixmap 2010-02-24 14:28:42 -05:00
Kristian Høgsberg
10e7962741 intel: Implement GL_OES_EGL_image entrypoints 2010-02-24 14:28:42 -05:00
Kristian Høgsberg
c26247100b intel: Implement DRI image extension 2010-02-24 14:28:42 -05:00
Kristian Høgsberg
79cbcb663d dri_interface.h: Add DRI image and eglImageLookup extensions
These are used for implementing the various EGLImage extensions.
2010-02-24 14:28:41 -05:00
Brian Paul
ccd78fed88 gallium: remove $(DEFINES) from cc/c++ command lines
The $(DEFINES) is already in $(CFLAG)S and (CXXFLAGS).
This prevents all the -D args appearing twice in the compilation commands.
2010-02-24 12:03:59 -07:00
Brian Paul
51b799288a mesa: put declaration before code 2010-02-24 11:57:26 -07:00
Brian Paul
9f6990120a gallium: comment/document usage flags 2010-02-24 11:56:38 -07:00
Kristian Høgsberg
d1dc5b124e core: Implement GL_OES_EGL_image entry points 2010-02-24 13:38:56 -05:00
Kristian Høgsberg
07b07b4d72 glapi: GL_OES_EGL_image autogenerated files 2010-02-24 13:38:55 -05:00
Kristian Høgsberg
caa46f7538 glapi: Add GL_OES_EGL_image 2010-02-24 13:38:55 -05:00
Brian Paul
517faa4f37 st/mesa: updated comments 2010-02-24 11:33:54 -07:00
Brian Paul
002f914211 st/mesa: consolidate redundant format conversion code 2010-02-24 11:31:33 -07:00
Brian Paul
7802ef6f69 st/mesa: more format code clean-up and removal 2010-02-24 11:23:58 -07:00
Brian Paul
d7de632de3 st/mesa: clean-ups in FBO code 2010-02-24 11:17:41 -07:00
Brian Paul
87c85347ed st/mesa: clean-up of format-related code 2010-02-24 11:10:47 -07:00
Brian Paul
5d8aae55f2 st/mesa: use util_format_get_blocksize() 2010-02-24 11:03:58 -07:00
Brian Paul
5bc62895e2 st/mesa: code clean-ups in st_renderbuffer_alloc_storage() 2010-02-24 10:56:10 -07:00
Brian Paul
f8978f186e llvmpipe: SRGB textures not supported yet 2010-02-24 10:47:58 -07:00
Brian Paul
ba92947198 llvmpipe: vertex shader textures not supported yet 2010-02-24 10:44:01 -07:00
Alex Deucher
5997501ca0 r600: proper fix for 1560183536
PRE_EMIT_STATE_BUFSZ accounts for the start 3d, idle, cd/db flush
not for state.  The relocs for CB_COLOR0_FRAG & CB_COLOR0_TILE
are part of the render target state.
2010-02-24 11:43:33 -05:00
José Fonseca
f9f4f3df42 r300: Update for UTIL_FORMAT_LAYOUT_xxx changes. 2010-02-24 16:16:21 +00:00
José Fonseca
85434f9e3c mesa: Update for UTIL_FORMAT_LAYOUT_xxx changes. 2010-02-24 16:16:21 +00:00
José Fonseca
83686b3f92 llvmpipe: Update for UTIL_FORMAT_LAYOUT_xxx changes. 2010-02-24 16:16:21 +00:00
José Fonseca
e5a43ac594 gallivm: Update for UTIL_FORMAT_LAYOUT_xxx changes. 2010-02-24 16:16:21 +00:00
José Fonseca
816d23505a util: Kill array vs arith layouts. Revamp UTIL_FORMAT_LAYOUT_xxx.
Too confusing. I now can get the same information through other means.
2010-02-24 16:16:21 +00:00