| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
| |
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 <[email protected]>
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
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 <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 <[email protected]>
|
|
|
|
|
|
|
| |
This re-introduces the race in _glapi_check_multithread, but avoids a
crash on windows.
Signed-off-by: Chia-I Wu <[email protected]>
|
|
|
|
|
|
|
|
|
| |
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 <[email protected]>
Signed-off-by: Chia-I Wu <[email protected]>
|
|
|
|
|
|
|
|
|
| |
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 <[email protected]>
Signed-off-by: Chia-I Wu <[email protected]>
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Shorthand.
(cherry picked from commit de911220bbbe74cff0c79b260456ff36122b7b5b)
|
|
|
|
|
| |
Simplifies migration to tgsi_ureg.
(cherry picked from commit f574398c07c41cb8d31249a7186fc178ef7d552a)
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
bypass_vs_clip_and_viewport case
|
|
|
|
| |
Pulled from Dave's WIP patch.
|
|
|
|
| |
needed for dri2. Pulled from Dave's WIP patch.
|
|
|
|
| |
Should cover everything exported from the VS
|
|
|
|
| |
Spotted by airlied.
|
| |
|
|
|
|
|
| |
This fixes openarena reloc errors. This needs to be
made more dynamic.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
use properly implemented OUT_BATCH_TABLE where possible
|
| |
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
This makes sure that objects are leaving wait list only when they are processed by gpu.
Signed-off-by: Pauli Nieminen <[email protected]>
|
|
|
|
|
| |
Gives a nice speed boost in most apps since
we only emit what state we need.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
DPH can output to any component, not just to X. This allows fpalu.c
to run without hitting the assertion in emit_dph.
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|
|
| |
Fixes protocol errors in cases where the GLX ID is different.
|
| |
|
|
|
|
|
| |
Hopefully suokko's emit size impovements will
land soon.
|
|\ |
|
| |
| |
| |
| |
| |
| | |
The commit "ARP prog parser: Implement the spec, not what makes sense"
broke the parsing of scalar constants. This commit reverts that part
of that commit. Now vp_swizzle.c passes.
|
| |\
| | |
| | |
| | |
| | | |
Conflicts:
src/mesa/shader/arbprogparse.c
|
| | | |
|