Commit Graph

25328 Commits

Author SHA1 Message Date
Cooper Yuan
dadf138ddb r600: Update vertex fetch shader if necessary 2009-08-26 16:21:10 +08:00
Ben Skeggs
1664bc1a37 st/dri: make the GL_ARB_map_buffer_range entrypoints available 2009-08-26 16:18:39 +10:00
Dave Airlie
674835f184 radeon/r100/r200: actually init the OQ support properly 2009-08-26 14:16:54 +10:00
Dave Airlie
b6df23d8b3 radeon/r200: OQ support for r200 in theory.
this is an untested port of the r100 OQ code
2009-08-26 14:03:48 +10:00
Dave Airlie
5484428d72 radeon: add r100 OQ support with kms.
This adds OQ support for the r100 chipsets, it requires
KMS unless someone wants to make a kernel patch to add support
for OQ regs.
2009-08-26 13:56:45 +10:00
Brian Paul
42675ff0e3 progs/glsl: call ValidateShaderProgram() 2009-08-25 17:46:11 -06:00
Brian Paul
a088e5631d mesa: validate shader before drawing (for debugging, disabled) 2009-08-25 17:46:10 -06:00
Brian Paul
d8b4f8c848 glsl: update a texture/sampler comment 2009-08-25 17:46:10 -06:00
Brian Paul
c90fca3da4 glsl: implement shader sampler validation
Shader validation should fail if there are two samplers of different types
which reference the same texture unit.  For example, if a cubemap sampler
and a 2D sampler both reference texture unit 0, that's invalid.
2009-08-25 17:46:10 -06:00
Brian Paul
2050baba96 mesa: use gl_texture_index type for gl_program::SamplerTargets 2009-08-25 17:46:10 -06:00
Brian Paul
fa6299cb31 progs/util: added ValidateShaderProgram() to shaderutil.c 2009-08-25 17:46:10 -06:00
Brian Paul
b7d2023cf9 i965: add some texture unit/target assertions 2009-08-25 17:46:10 -06:00
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