summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2009-08-24xlib: fix single buffer window resize bugBrian Paul1-0/+1
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-24vbo: fix divide by zero exceptionBrian Paul1-1/+1
Fixes bug 23489.
2009-08-24glsl: Silence gcc uninitialized variable warning.Vinson Lee1-1/+1
2009-08-24st/mesa: flush bitmap cache if Z value changesBrian Paul1-5/+11
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-24ARB prog parser: Regenerate parser from previous commitIan Romanick1-6/+6
2009-08-24ARB prog parser: use correct context limitsBrian Paul1-6/+6
2009-08-24r600: fix state emit sizesAlex Deucher3-14/+75
2009-08-24egl_xdri: Revive the driver.Chia-I Wu6-832/+953
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-24glapi: Fix a possible race in getting current context/dispatch.Chia-I Wu3-41/+41
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-24glapi: Static mutex does not work on WIN32_THREADS.Chia-I Wu1-2/+11
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-24glapi: Fix a race in accessing context/dispatch TSD.Chia-I Wu1-0/+4
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-24glapi: Protect _glapi_check_multithread by a mutex.Chia-I Wu1-14/+15
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-24mesa: _mesa_layout_parameters() returns a boolean valueBrian Paul2-5/+10
2009-08-24r300: add support for EXT_framebuffer_blitMaciej Cencora3-44/+44
2009-08-24tgsi: Fix build error due to commit acc7da90Cooper Yuan1-6/+6
2009-08-24tgsi: Only free temp uregs.José Fonseca1-2/+3
Shorthand. (cherry picked from commit de911220bbbe74cff0c79b260456ff36122b7b5b)
2009-08-24tgsi: Pass pipe_context as a parameter to ureg_create_shader.José Fonseca2-14/+30
Simplifies migration to tgsi_ureg. (cherry picked from commit f574398c07c41cb8d31249a7186fc178ef7d552a)
2009-08-24tgsi: add generic instruction builderKeith Whitwell2-0/+33
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-24r300g: Set the vector address in the input memory for ↵Cooper Yuan1-16/+20
bypass_vs_clip_and_viewport case
2009-08-24r600: scissor updates for dri2Dave Airlie1-14/+23
Pulled from Dave's WIP patch.
2009-08-24r600: switch to common cs functionsDave Airlie2-31/+14
needed for dri2. Pulled from Dave's WIP patch.
2009-08-24r600: map 16 VS outputsAlex Deucher1-0/+2
Should cover everything exported from the VS
2009-08-23r600: fix logic copy paste errorAlex Deucher1-2/+2
Spotted by airlied.
2009-08-23radeon: add radeon_cs_write_table to the legacy pathAlex Deucher1-0/+9
2009-08-23r600: bump reloc_chunk sizeAlex Deucher1-1/+1
This fixes openarena reloc errors. This needs to be made more dynamic.
2009-08-23r600: fix count for CB/DB target stateAlex Deucher1-2/+2
2009-08-23r300: fix a typoMaciej Cencora1-1/+1
2009-08-23radeon: use proper macroMaciej Cencora1-3/+1
2009-08-23radeon: use bo_is_idle interface for checking if OQ result is availableMaciej Cencora1-19/+38
2009-08-23r300: minor optimizationMaciej Cencora2-12/+5
use properly implemented OUT_BATCH_TABLE where possible
2009-08-23ARB prog lexer: Fix lexer to eat both DOS and Unix line endingsIan Romanick2-304/+308
2009-08-23r600: use persistent bos for shadersAlex Deucher1-24/+26
2009-08-23r600: always emit CB baseAlex Deucher1-1/+7
Not doing so seems to cause lock-ups or rendering problems on some chips. I think there is an logic issue related to CB and VGT on some chips. We ran into similar issues in r600_demo IIRC.
2009-08-23radeon: Fix compilation with legacy memory manager.Pauli Nieminen1-1/+1
2009-08-23radeon: Check from kernel if dma buffer is idle.Pauli Nieminen3-1/+33
This makes sure that objects are leaving wait list only when they are processed by gpu. Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
2009-08-22r600: make state emit more fine grainedAlex Deucher4-106/+230
Gives a nice speed boost in most apps since we only emit what state we need.
2009-08-22ARB prog parser: include imports.h to kill some compiler warningsLuo Jinghua1-0/+1
2009-08-22r600: move full state to radeon state atomsAlex Deucher9-192/+262
2009-08-22r600: add support for RS880Alex Deucher5-0/+19
2009-08-22i965: Implement frag prog DPH like DP4Ian Romanick1-3/+5
DPH can output to any component, not just to X. This allows fpalu.c to run without hitting the assertion in emit_dph.
2009-08-22st/dri: Remove some debug printsJakob Bornecrantz1-6/+0
2009-08-22st/dri: Find out if the drawable is a pixmapJakob Bornecrantz2-0/+39
Part of this code is disabled since no performance gains where detected with it enabled. This code only detects if it is a pixmap that it is rendering to on the st/xorg DDX since it sets the fake front to the same handle as front.
2009-08-22st/dri: Fix frontbuffer rendering with DRI2Jakob Bornecrantz1-15/+15
2009-08-22st/xorg: Handle fake fronts correctly for pixmapsJakob Bornecrantz1-0/+46
2009-08-22i915g: Remove bad assert on fenceJakob Bornecrantz1-3/+0
2009-08-22glx/dri2: Always use X drawable ID for DRI2 protocol.Michel Dänzer1-5/+5
Fixes protocol errors in cases where the GLX ID is different.
2009-08-22Fix r300 VBO support build on big endian.Michel Dänzer1-3/+3
2009-08-21r600: better default state size.Alex Deucher3-9/+15
Hopefully suokko's emit size impovements will land soon.
2009-08-21Merge branch 'asm-shader-rework-1'Ian Romanick22-8084/+13341
2009-08-21radeon: fix incorrect loop limit (warned by -O3)Brian Paul1-1/+1