Commit graph

25316 commits

Author SHA1 Message Date
Brian Paul
f9ce0a91dc mesa: print some program fields in binary too 2009-08-25 17:46:10 -06:00
Pauli Nieminen
dbf59de6d2 r200: Add scissor to state atom list.
Scissors are jsut one of states that we have to emit so it should be in state list
2009-08-26 01:53:17 +03:00
Pauli Nieminen
5d10890795 radeon/r600: Fix remaining warnings when building 64 bit binary. 2009-08-25 22:16:19 +03:00
Pauli Nieminen
87f83e193a r200: Addd missing parameter to debug output. 2009-08-25 21:39:58 +03:00
Pauli Nieminen
75df73838a r200: Fix commit size prediction.
Scissor are emited for every primitive so fix that in prediction.
2009-08-25 21:36:57 +03:00
Zack Rusin
7bc4744026 xorg: insert shaders into the cache 2009-08-25 14:22:26 -04:00
Zack Rusin
23b59d3b40 exa: add basic code to cache vertex and fragment shaders 2009-08-25 14:01:58 -04:00
Zack Rusin
c7653a8333 exa: check whether the op is accelerated 2009-08-25 13:23:08 -04:00
Pauli Nieminen
c3374bf97e radeon: Fix all compiler warnings. 2009-08-25 19:35:41 +03:00
Brian Paul
42ecb1287e mesa: remove -I$(TOP)/src/gallium/drivers from sources.mak
Core Mesa and the state tracker do not depend on any gallium drivers.
2009-08-25 09:42:28 -06:00
Brian Paul
a94d66e857 Revert "glapi: Fix a possible race in getting current context/dispatch."
This reverts commit 17090cf3ef.

We're reverting this because it causes ABI breakage with the X server.
Maybe re-attempt with another patch.
2009-08-25 09:37:43 -06:00
Zack Rusin
65f9d10342 xorg: revert bad merge 2009-08-25 09:58:51 -04:00
Michel Dänzer
d22bd1421c Add support for building the Xorg state tracker with scons.
scons ... statetrackers=xorg
2009-08-25 15:39:05 +02:00
Pauli Nieminen
418cdc66ec Revert "glx: Make drawables persistent untill they are changed by glXMakeCurrent"
This commit was not mean to end in to master yet. It is still queston if this
right design to fix the problem.

This reverts commit 45e3be3c07.
2009-08-25 05:07:08 +03:00
Pauli Nieminen
ce7ed63f0c Merge branch 'master' of ssh://git.freedesktop.org/git/mesa/mesa into r600_state_predict 2009-08-25 02:36:13 +03:00
Maciej Cencora
1d5a06a1f7 r300: fix condition logic
The s3tc extensions are properly enabled now, when force_s3tc_enable option is set in driconf.
2009-08-25 01:30:24 +02:00
Maciej Cencora
ff235c8ccb r300: set proper CS section size 2009-08-25 01:30:24 +02:00
Pauli Nieminen
4297f32c24 radeon/r200/r300/r600: Warn if we emit more than prediction was.
Prediction code making too small prediction may cause space check aserttion
failure later in rendering. So warning about any failure to predict correctly
should be fixed.
2009-08-25 02:23:52 +03:00
Zack Rusin
ffe8cc6cef xorg: fix compilation 2009-08-24 18:42:16 -04:00
Zack Rusin
17076d700c xorg: start on code accelerating render 2009-08-24 18:39:01 -04:00
Alex Deucher
3023328ea7 r300: add support for getting Z pipe info from drm
Needed for occulsion queries on rv530 chips

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2009-08-24 18:08:37 -04:00
Alex Deucher
8dd151b947 r600: code cleanup 2009-08-24 17:51:00 -04:00
Dave Airlie
dea1038186 radeon: fix fbo size calculation to after pitch 2009-08-25 07:21:03 +10:00
Zack Rusin
cd5c7bfd93 Merge branch 'master' of ssh://zack@git.freedesktop.org/git/mesa/mesa 2009-08-24 16:39:25 -04:00
Zack Rusin
534c133022 openvg: fix vgTransformPath with relative coords 2009-08-24 16:38:43 -04:00
Ian Romanick
4bccd693a7 ARB prog: Set error instead of falling through with incorrect value
If a fragment program only parameter was queried of a vertex program
(e.g., GL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB) no error would be set and
a random value would be returned.  This caused 'glxinfo -l' to show
the same values for GL_MAX_PROGRAM_ALU_INSTRUCTIONS_ARB,
GL_MAX_PROGRAM_TEX_INSTRUCTIONS_ARB, GL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB,
GL_MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB,
GL_MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB,
GL_MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB as for
GL_MAX_PROGRAM_ENV_PARAMETERS_ARB.  This is confusing and incorrect.
2009-08-24 12:51:29 -07:00
Brian Paul
1e2a71c5c2 mesa: add new program parser sources to tarball
The end user doesn't need the .y or .l or Makefile but include them anyway
in case someone wants to patch or debug things.
2009-08-24 13:12:07 -06:00
Brian Paul
b879316d4d docs: recent 7.5.1 bug fixes 2009-08-24 13:05:20 -06:00
Brian Paul
69170a4aae xlib: fix single buffer window resize bug
When a single-buffered window was resized the new window size was never
detected.  This fix that, but there's still a bug which causes window
contents corruption for certain window sizes...
2009-08-24 13:05:20 -06:00
Brian Paul
93aa0fd81c vbo: fix divide by zero exception
Fixes bug 23489.
2009-08-24 13:05:20 -06:00
Vinson Lee
0a24e50111 glsl: Silence gcc uninitialized variable warning. 2009-08-24 13:04:50 -06:00
Brian Paul
4eb7256854 st/mesa: flush bitmap cache if Z value changes
When adding a new bitmap to the cache we have to check if the Z value is
changing and flush first if it is.

This is a modified version of a patch from Justin Dou <justin.dou@intel.com>
2009-08-24 13:04:50 -06:00
Ian Romanick
d8a3ada7fb ARB prog parser: Regenerate parser from previous commit 2009-08-24 12:00:35 -07:00
Brian Paul
4cf27608bc ARB prog parser: use correct context limits 2009-08-24 12:00:35 -07:00
Alex Deucher
29473d25a3 r600: fix state emit sizes 2009-08-24 14:40:40 -04:00
Chia-I Wu
58ac57c2b7 egl_xdri: Revive the driver.
egl_xdri does not compile for some time.  This commit revives the
driver.  It no longer depends on libGL.so for GLX related functions.
Instead, it uses code from src/glx/ directly.  Both DRI and DRI2 are
supported.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-08-24 11:49:45 -06:00
Chia-I Wu
17090cf3ef glapi: Fix a possible race in getting current context/dispatch.
There is a possbile race that _glapi_Context is reset by another thread
after it is tested in GET_CURRENT_CONTEXT but before it is returned.  We
definitely do not want a lock here to solve the race.  To have correct
results even under a race, no other threads should reset _glapi_Context
(or _glapi_Dispatch).

This patch adds a new global variable _glapi_SingleThreaded.  Since
_glapi_Context or _glapi_Dispatch are no longer reset,
_glapi_SingleThreaded is tested instead, before accessing them.

DRI drivers compiled with this patch applied will not work with existing
libGL.so because of the missing new symbol.  If this turns out to be a
real problem, this patch should be reverted.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-08-24 11:46:15 -06:00
Chia-I Wu
3076d1617d glapi: Static mutex does not work on WIN32_THREADS.
This re-introduces the race in _glapi_check_multithread, but avoids a
crash on windows.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-08-24 11:46:15 -06:00
Chia-I Wu
fc2feea685 glapi: Fix a race in accessing context/dispatch TSD.
If multiple threads set/get a TSD at roughly same time for the first
time, glthread might (wrongly) initialize it more than once.  This patch
solves the race by initializing context/dispatch TSDs early.

Acked-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-08-24 11:45:57 -06:00
Chia-I Wu
99939982ec glapi: Protect _glapi_check_multithread by a mutex.
Multiple threads might call _glapi_check_multithread at roughly the same
time.  It is possbile that all of them are wrongly regarded as firstCall
if there is no mutex.  This bug causes xeglthreads to crash sometimes.

Acked-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-08-24 11:45:57 -06:00
Brian Paul
53db19b57d mesa: _mesa_layout_parameters() returns a boolean value 2009-08-24 10:50:07 -06:00
Pauli Nieminen
55c0457fe9 radeon: Add debug output to radeonCountStateEmitSize. 2009-08-24 18:45:30 +03:00
Pauli Nieminen
ec61f677c3 r600: Fix indetion and add useful debug output. 2009-08-24 18:06:25 +03:00
Pauli Nieminen
75da0a6a56 Merge branch 'master' of ssh://git.freedesktop.org/git/mesa/mesa into r600_state_predict 2009-08-24 17:09:27 +03:00
Maciej Cencora
ed14a4cb7b r300: add support for EXT_framebuffer_blit 2009-08-24 14:52:33 +02:00
Cooper Yuan
a88678d3ee tgsi: Fix build error due to commit acc7da90 2009-08-24 19:50:38 +08:00
José Fonseca
02c523dfbb tgsi: Only free temp uregs.
Shorthand.
(cherry picked from commit de911220bbbe74cff0c79b260456ff36122b7b5b)
2009-08-24 12:11:24 +01:00
José Fonseca
acc7da9035 tgsi: Pass pipe_context as a parameter to ureg_create_shader.
Simplifies migration to tgsi_ureg.
(cherry picked from commit f574398c07c41cb8d31249a7186fc178ef7d552a)
2009-08-24 12:11:22 +01:00
Keith Whitwell
b570a7e6b6 tgsi: add generic instruction builder
When translating an incoming shader (rather than building one from scratch)
it's preferable to be able to call a single, generic instruction emitter
rather than figuring out which of the opcode-specific functions to call.
2009-08-24 11:33:38 +01:00
Cooper Yuan
7ee4f32dcd r300g: Set the vector address in the input memory for bypass_vs_clip_and_viewport case 2009-08-24 13:56:23 +08:00