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
Chia-I Wu
524b2626c2
draw: Add draw_decompose_tmp.h.
...
Including draw_decompose_tmp.h defines a primitive decomposer. It is
intended to replace the existing vcache/so/gs/pipe decomposers.
This is based on draw_pt_vcache_tmp.h.
2010-08-06 13:39:36 +08:00
Dave Airlie
0a2a6c75bf
r600g: add SRGB support.
...
This enables GL2.1 and passes glean's texture_srgb test.
2010-08-06 15:21:44 +10:00
Dave Airlie
fc47cb9d71
r600g: fixup z format translations.
...
this enables GL_EXT_packed_depth_stencil. fbo-d24s8 passes
2010-08-06 15:06:25 +10:00
Dave Airlie
b8de7788a4
r600g: fix targetmask to work correctly.
...
At least this seems to fix the glean maskedClear test.
2010-08-06 14:54:24 +10:00
Dave Airlie
2b90364765
r600g: improve supported format selection.
...
This fixes fbo-readpixels piglit test, and adds support for swapping
the formats. Not all formats are correct yet I don't think.
Signed-off-by: Dave Airlie <airlied@redhat.com >
2010-08-06 14:53:38 +10:00
Dave Airlie
121a625c16
r600g: add bo wait after map.
2010-08-06 11:46:52 +10:00
Vinson Lee
f717fd25cc
st/mesa: Clean up header file inclusion in st_program.h.
...
st_program.h
Remove p_shader_tokens.h
Include st_context.h for st_context symbol.
Include p_state.h for PIPE_MAX_SHADER_INPUTS symbol.
Remove unnecessary forward declarations.
st_cb_bitmap.c
st_cb_clear.c
Include p_shader_tokens.h now that st_program.h doesn't include it.
2010-08-05 18:21:09 -07:00
Marek Olšák
4d10ec4f18
r300g: do not emit GB_Z_PEQ_CONFIG on non-r500 if DRM < 2.6.0
2010-08-06 03:14:43 +02:00
Jakob Bornecrantz
1a3a04d56b
tgsi: Fix typo, so we follow what is in the comments
2010-08-05 17:53:48 -07:00
Jakob Bornecrantz
9f5c1194ff
tgsi: Add option to stop the sanity checker from printing
2010-08-05 17:44:05 -07:00
Jakob Bornecrantz
4d65055b1f
util: Add option to not dump cpu caps
2010-08-05 17:25:13 -07:00
Jakob Bornecrantz
981c6bc6a5
st/mesa: Only get debug option once
2010-08-05 17:25:13 -07:00
Jakob Bornecrantz
99611f0849
st/mesa: Only get mesa mvp dp4 option once
...
The correct for this is of course to do what comment says
2010-08-05 17:25:13 -07:00
Jakob Bornecrantz
e00b17830b
llvmpipe: Only get no rast option once
2010-08-05 17:25:13 -07:00
Jakob Bornecrantz
4bd061b127
gallivm: Only get debug option once
2010-08-05 17:25:13 -07:00
Vinson Lee
1b8aa2176c
st/mesa: Clean up header file inclusion in st_mesa_to_tgsi.h.
...
st_mesa_to_tgsi.h
Replace tgsi_ureg.h with a forward declaration.
Include p_compiler.h for ubyte symbol.
st_program.c
Include tgsi_ureg.h directly.
2010-08-05 17:15:25 -07:00
Luca Barbieri
bf5ee5aa4f
nvfx: fix nv30 vertex program scalar opcodes
...
Apparently they have always been broken, even before unification.
Fixes a lot of stuff, starting from morph3d and lighting in teapot
with textures disabled.
2010-08-06 01:28:14 +02:00
Luca Barbieri
3e231361f3
nvfx: shut up unknown cap 64 warning
2010-08-06 01:28:14 +02:00
Vinson Lee
0a7cbe845f
st/mesa: Clean up header file inclusion in st_manager.h.
...
Include mtypes.h for GLcontext, gl_buffer_index, and GLframebuffer
symbols.
Include p_compiler.h for boolean symbol.
Include st_context.h in st_cb_eglimage.c as it previously included
st_context.h indirectly through st_manager.h.
2010-08-05 16:20:07 -07:00
Brian Paul
3d038a3ed2
glsl: fix atan(0, -1)
...
Fixes fd.o bug 29388
NOTE: this is a candidate for the 7.8 branch.
2010-08-05 16:39:09 -06:00
Alex Deucher
918ef7ff18
r600c: tiling require drm 2.6.0, not 2.5.0
2010-08-05 17:42:29 -04:00
Alex Deucher
e93d413a0d
r600: add support for getting the tiling config via drm ioctl (v2)
...
Needed for the the 2D tiling span functions.
v2: rebase on new kernel, mesa changes
Signed-off-by: Alex Deucher <alexdeucher@gmail.com >
2010-08-05 17:13:10 -04:00
Alex Deucher
3095bc679d
r600: add new relocs for tiling support
...
Signed-off-by: Alex Deucher <alexdeucher@gmail.com >
2010-08-05 17:12:52 -04:00
Alex Deucher
063c70d7f7
r600: add span support for 2D tiling
...
Requires tiling config ioctl support from the drm to use.
kms only.
Signed-off-by: Alex Deucher <alexdeucher@gmail.com >
2010-08-05 17:12:37 -04:00