Marek Olšák
4f5e51068b
r300g: flush zmasks of zbuffers we are going to use as samplers
...
It sometimes works, sometimes not. I guess we have the zmask offsets wrong.
2010-08-08 22:53:31 +02:00
Marek Olšák
363b74f132
r300g: do not allocate a zmask block for 3D textures and cubemaps
2010-08-08 22:29:00 +02:00
Marek Olšák
757c78afe7
r300g: generalize the way we ask for hyperz
...
This makes it compatible with the modified DRM interface in drm-radeon-testing.
Also, now you need to set RADEON_HYPERZ=1 to be able to use hyperz.
It's not bug-free yet.
2010-08-08 22:28:35 +02:00
José Fonseca
d827972816
gallivm: Add type checks for the basic operations.
2010-08-08 21:02:59 +01:00
José Fonseca
b9a21fd6ca
draw: Remove unused variable.
2010-08-08 13:58:23 +01:00
nobled
445e59057f
draw: Use the correct type for integers
...
Two integers were being operated on as
a vector of floats in draw_llvm_generate().
This bug got uncovered by fixing this bug:
http://bugs.freedesktop.org/29407
2010-08-08 12:19:07 +01:00
Dave Airlie
b55f627937
r300g: take hiz/zmask offsets into a/c when clearing.
...
Need to add a test for multi-hiz/zmask db in a single context.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-08-08 19:12:14 +10:00
Vinson Lee
ef3b17f5f3
i810: Add missing header m_xform.h.
...
This is another follow-up to commit
f4511c4835 .
2010-08-07 23:38:20 -07:00
Vinson Lee
facf368df2
dri: Add missing header m_xform.h.
...
This is a follow-up patch to commit
f4511c4835 .
Files that include tnl_dd/t_dd_dmatmp.h now need to also include
m_xform.h as t_context.h no longer includes it.
2010-08-07 23:19:27 -07:00
Vinson Lee
f4511c4835
tnl: Reduce header file inclusion in t_context.h.
...
t_context.h
Remove m_matrix.h and m_xform.h.
t_vb_program.c
Include m_xform.h.
t_vb_render.c
Include m_xform.h.
2010-08-07 22:56:35 -07:00
Vinson Lee
2154dfa701
swrast: Reduce header file inclusion in s_zoom.h.
...
Include mtypes.h for GLcontext symbol.
Include s_span.h for SWspan symbol.
2010-08-07 22:13:19 -07:00
Vinson Lee
a2a40cefe2
swrast: Fix header file inclusion in s_texfilter.h.
...
Include mtypes.h for GLcontext symbol.
Include s_context.h for texture_sample_func symbol.
2010-08-07 22:05:28 -07:00
Vinson Lee
c20e977467
swrast: Reduce header file inclusion in s_texcombine.h.
...
Include mtypes.h for GLcontext sybmol.
Include s_span.h for SWspan symbol.
2010-08-07 22:01:27 -07:00
Vinson Lee
e616d05b22
swrast: Reduce header file inclusion in s_stencil.h.
...
Include mtypes.h for GLcontext symbol.
Include s_span.h for SWspan symbol.
2010-08-07 21:44:53 -07:00
Vinson Lee
01739cdda2
swrast: Reduce header file inclusion in s_masking.h.
...
Include mtypes.h for GLcontext symbol.
Include s_span.h for SWspan symbol.
2010-08-07 21:24:16 -07:00
Vinson Lee
562c727414
swrast: Reduce header file inclusion in s_logic.h.
...
Include mtypes.h for GLcontext symbol.
Include s_span.h for SWspan symbol.
2010-08-07 21:07:11 -07:00
Vinson Lee
f009f177fd
swrast: Reduce header file inclusion in s_fragprog.h.
...
s_fragprog.h
Include mtype.h for GLcontext symbol.
Include s_span.h for SWspan symbol.
s_fragprog.c
Include s_context.h now that it is removed from s_fragprog.h.
2010-08-07 21:01:12 -07:00
Vinson Lee
7b56285487
swrast: Reduce header file inclusion in s_fog.h.
...
Include mtypes.h for GLcontext symbol.
Include s_span.h for SWspan symbol.
2010-08-07 13:57:50 -07:00
Vinson Lee
5db13da866
swrast: Clean up header file inclusion in s_depth.h.
...
Include mtypes.h for GLcontext symbol.
Include s_span.h for SWspan symbol.
2010-08-07 13:04:50 -07:00
Vinson Lee
690ead0f22
swrast: Include missing header in s_context.h.
...
Include compiler.h for _ASMAPIP symbol.
2010-08-07 12:44:58 -07:00
Vinson Lee
d6273bb39b
swrast: Clean up header file inclusion in s_blend.h.
...
Include mtypes.h for GLcontext symbol.
Include s_span.h for SWspan symbol.
2010-08-07 12:36:50 -07:00
Vinson Lee
12e8e5ee95
swrast: Clean up header file inclusion in s_atifragshader.h.
...
s_atifragshader.h
Include mtypes.h for GLcontext symbol.
Include s_span.h for SWspan symbol.
s_atifragshader.c
Include s_context.h for SWcontext symbol.
2010-08-07 12:25:20 -07:00
Vinson Lee
1bc1c669b2
swrast: Clean up header file inclusion in s_alpha.h.
...
Include mtypes.h for GLcontext symbol.
Include s_span.h for SWspan symbol.
2010-08-07 12:19:29 -07:00
Marek Olšák
1e46de3a83
r300c: do not advertise half float vertex on RV3xx, RS4xx, RC4xx
...
Fixes a hardlock.
NOTE: this is a candidate for the 7.8 branch, provided the half float vertex
is really implemented there.
2010-08-07 18:13:05 +02:00
Vinson Lee
d64a119c28
st/mesa: Remove unnecessary header.
2010-08-06 18:45:15 -07:00
Marek Olšák
ab0a3f30b8
r300g: fix cbzb clears when hyperz is off
2010-08-07 02:00:21 +02:00
Maarten Maathuis
a838cee6bc
nouveau: fix potential NULL-ptr dereference in nouveau_stateobj.h
...
- This can only be triggered when DEBUG_NOUVEAU_STATEOBJ is active.
- Also remove a redundant pointer assignment.
Reported-by: Roy Spliet <r.spliet@student.tudelft.nl>
Signed-off-by: Maarten Maathuis <madman2003@gmail.com>
2010-08-06 23:56:31 +02:00
Jerome Glisse
d9f72b9f90
r600g: add PA_CL_CLIP_CNTL definition
...
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-08-06 17:27:36 -04:00
Jerome Glisse
32251c34f0
r600g: fix rendering, only enable target we write too
...
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-08-06 17:23:43 -04:00
Jerome Glisse
b474478f20
r600g: really fix multi target support
...
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-08-06 17:13:28 -04:00
Brian Paul
6b97fe52c9
st/mesa: remove stray semicolons
2010-08-06 15:09:51 -06:00
Brian Paul
14e9fbee1c
gallium: remove stray semicolons
2010-08-06 15:09:41 -06:00
Jerome Glisse
c3ad060488
r600g: finish multi target rendering support
...
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-08-06 16:12:22 -04:00
Vinson Lee
69d450856a
targets/egl: Fix build by including missing headers.
2010-08-06 11:46:16 -07:00
Chia-I Wu
e34c52da87
draw: Add an assertion to varray's version of trim().
...
Assert that "first" is always smaller than "count" and add reasoning.
It would be better to simply fix trim(), but it is used in tight loops
right now.
2010-08-07 02:20:06 +08:00
Chia-I Wu
600cd858d4
draw: Fix draw_pt_split_prim for primitives with adjacency.
...
Some primitives with adjacency have their "incr" wrong.
2010-08-07 02:16:50 +08:00
Chia-I Wu
6ae39f6dca
draw: Assert that only the first vetex may have flags set.
...
642d5ba79a removed flags masking for
vertices other than the first one. Add assertions to be on the safe
side.
2010-08-07 02:14:50 +08:00
Jerome Glisse
27041d7cb3
r600g: fix color format, indentation, defines
...
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-08-06 11:28:33 -04:00
Jerome Glisse
6e6103004c
Revert "r600g: don't use dynamic state allocation for states"
...
This reverts commit 9c949d4a4d .
Conflicts:
src/gallium/drivers/r600/r600_context.h
src/gallium/drivers/r600/r600_draw.c
src/gallium/drivers/r600/r600_shader.c
src/gallium/drivers/r600/r600_state.c
2010-08-06 10:59:27 -04:00
Chia-I Wu
d38afcd2f2
draw: Avoid mixed declarations and code.
...
Do not expand LOCAL_VARS to void expression. Otherwise, declarations
and code will be mixed when more variables are declared in FUNC_ENTER.
This fixes fdo bug #29416 .
2010-08-06 17:14:21 +08:00
Vinson Lee
bec87456ed
swrast: Reduce header file inclusion in s_aatriangle.h.
...
Include mtypes.h for GLcontext symbol.
2010-08-06 01:04:49 -07:00
Vinson Lee
a3439df79f
swrast: Reduce header file inclusion in s_aaline.h.
...
Include mtypes.h for GLcontext symbol.
2010-08-06 00:57:52 -07:00
Vinson Lee
a6859f5ccc
r300g: Remove unnecessary headers.
2010-08-05 23:58:00 -07:00
Dave Airlie
5f6ab5e259
r600g: start to fix up multiple targets.
...
fixup exports from pixel shader for multi-cbs + depth buffer writing.
Still crashes GPU running any of the multi-buffer or depth writing
2010-08-06 16:05:24 +10:00
Chia-I Wu
642d5ba79a
draw: Remove unnecessary vertex flag ANDs.
...
Vertex flags are a contract between vcache and the pipeline. They are
set only for the first vertex of a primitive.
2010-08-06 13:39:37 +08:00
Chia-I Wu
f1fc444bb0
draw: Mask out vertex flags in GS and stream output.
...
This fixes out-of-bound access to the vertices.
2010-08-06 13:39:37 +08:00
Chia-I Wu
eb3c6ddafb
draw: Include draw_decompose_tmp.h in draw_pt_decompose.h.
...
Use draw_decompose_tmp.h to replace pipeline primitive decomposer.
2010-08-06 13:39:36 +08:00
Chia-I Wu
94d256591d
draw: Include draw_decompose_tmp.h in draw_so_emit_tmp.h.
...
Use draw_decompose_tmp.h to replace stream out primitive decomposer.
2010-08-06 13:39:36 +08:00
Chia-I Wu
23176779f8
draw: Include draw_decompose_tmp.h in draw_gs_tmp.h.
...
Use draw_decompose_tmp.h to replace GS primitive decomposer.
2010-08-06 13:39:36 +08:00
Chia-I Wu
8a41b18b7d
draw: Include draw_decompose_tmp.h in draw_pt_vcache_tmp.h.
...
Use draw_decompose_tmp.h to replace vcache primitive decomposer. As the
new decomposer supports primitives with adjacency, vcache_triangle_adj
and vcache_line_adj (and their variants that have flags) are added.
2010-08-06 13:39:36 +08:00