Brian
5c7c0675a7
Cell: generalize the batch buffer code for vertex buffers...
2008-02-15 13:50:23 +11:00
Brian
72b671bd39
gallium: check if surface has defined status in check_clear_depth_with_quad()
...
This was part of Keith's patch from Friday.
2008-02-15 13:50:23 +11:00
Keith Whitwell
af2ccd4c0c
gallium: handle flatshading explicitly in clipper stage
...
We can do a better job in the clip stage than just relying on the
brute-force approach of copying colors to all incoming vertices applied
in the flatshade stage.
At very least, it is only necessary to do this in the clipper when a
primitive is actually being clipped.
2008-02-15 13:50:23 +11:00
Keith Whitwell
bb37e7f591
gallium: add a couple of hardwired vertex fetch functions
2008-02-15 13:50:22 +11:00
Keith Whitwell
f7e64c323f
gallium: only call vertex/prim queue flush when there is something to flush
2008-02-15 13:50:22 +11:00
Keith Whitwell
85d7e7ceee
gallium: explictly cast double to float in vertex fetch
2008-02-15 13:50:22 +11:00
Keith Whitwell
01ab6472cc
gallium: fill in missing formats for vertex_fetch
2008-02-15 13:50:22 +11:00
Keith Whitwell
25d2ffc669
gallium: remove dead code from draw_vf*
2008-02-15 13:50:22 +11:00
José Fonseca
169a74196f
First stab at hooking draw_vbuf & vf.
...
Emit disabled for now. Tested with softpipe. Only one vertex at a time for now (slow).
2008-02-15 13:50:22 +11:00
José Fonseca
a7872d4c41
Clone vf module.
2008-02-15 13:50:22 +11:00
Michal Krol
19780237ff
gallium: Fix memory leak.
2008-02-15 11:30:51 +09:00
Michal Krol
742c5d3e1b
gallium: Fix memory leak.
2008-02-15 11:30:49 +09:00
Michal Krol
6a7820d31f
gallium: Use align_free() to free aligned memories.
2008-02-15 11:30:06 +09:00
Michal Krol
d3cd39493c
gallium: Fix build on Windows.
2008-02-15 11:29:58 +09:00
Michal Krol
3f1b712d0a
gallium: Use MALLOC().
2008-02-15 11:22:07 +09:00
José Fonseca
d8ae972fd0
gallium: Fix MSVC compiler warnings.
2008-02-15 11:22:07 +09:00
Brian
663f4aaae6
gallium: remove some debug assertions in vertex format validation
...
If a fragment shader references an input for which there's no vertex
shader output (ex: texcoord3), use vertex output 0 by default.
Basically, the attribute's value will be undefined. The shader writer
should never rely on undefined fragment shader inputs anyway.
2008-02-14 19:18:09 -07:00
Brian
3d81a956b9
gallium: rearrange vertex info/layout validation
...
Delay validation until someone really needs the vertex layout (vbuf alloc
vertex buffer or point/line/tri setup/rendering).
This will allow the vertex size to change depending on whether we're
drawing points, lines or triangles.
2008-02-14 18:59:25 -07:00
Brian
1b6540b4b1
gallium: include draw_context.h to silence warning
2008-02-14 18:59:24 -07:00
Brian
d2b14311d9
gallium: minor function renaming
2008-02-14 18:59:24 -07:00
Brian
4c1403f667
gallium: new tgsi_transform_shader() function
...
Used to apply transformations to TGSI shaders, such as register search and
replace.
2008-02-14 18:59:24 -07:00
Brian
ca2f2c7664
gallium: new pgon-mode.c test
...
A two-triangle strip is drawn such that the first tri is front-facing and
the second tri is back-facing. Use different front/back polygon modes.
2008-02-14 18:59:24 -07:00
Brian
5e345a653b
gallium: call draw_flush() in softpipe_flush()
...
Without this, we might not get any rendering at SwapBuffers time when using the vbuf path.
2008-02-14 18:59:24 -07:00
Brian
7a3e59d236
gallium: fix some "instruction"/"declaration" mix-ups in tgsi_exec_prepare().
2008-02-14 18:59:24 -07:00
Brian
59cc1f4e62
gallium: replace "interpolate" terminology with "eval" to better reflect what's being done.
2008-02-14 18:59:24 -07:00
Brian
4f32c53237
gallium: changes to polygon mode weren't detected in draw_unfilled stage.
...
Need to reset stage->tri = unfilled_first_try in unfilled_flush() so that the
front/back state is picked up.
2008-02-14 18:59:24 -07:00
Brian
b08102a8f3
gallium: rename draw_free_tmps->draw_free_temp_verts, draw_alloc_tmps->draw_alloc_temp_verts
2008-02-14 18:59:24 -07:00
Brian
e9c6c31651
galllium: comments, minor clean-ups
2008-02-14 18:59:24 -07:00
Ian Romanick
bbd7aabe2b
More name typeo fixes.
2008-02-14 17:42:34 -08:00
Stephane Marchesin
903521a6c0
nouveau: oops and make nouveau winsys build by default
2008-02-15 02:41:34 +01:00
Stephane Marchesin
583f424d61
nouveau: add nv30.
2008-02-15 02:36:28 +01:00
Stephane Marchesin
e538dc52c1
nouveau: hook in nv30.
2008-02-15 02:26:03 +01:00
Stephane Marchesin
e713cb26c9
nouveau: Update to latest header.
2008-02-15 02:26:03 +01:00
Stephane Marchesin
73b3a29b16
Hook nv30 into the build.
2008-02-15 02:26:03 +01:00
Ian Romanick
d4d9943b01
s/spu_/spe_/g Ugh.
2008-02-14 17:06:13 -08:00
Ian Romanick
18fd3b7571
Cell: pass pointers to stored memory values
...
Several routines use shuffle patterns that are stored in memory. For
code gen, it is difficult to directly access the data segments. The
routines have been modified to be passed a pointer to a global table
of shuffle patterns.
This *should* be the last change to this file before switching over to
code gen.
2008-02-14 16:53:05 -08:00
Kristian Høgsberg
c5c73c1b60
Hook up i915 driver to new DRI2 infrastructure.
2008-02-14 17:56:44 -05:00
Kristian Høgsberg
7da5705b09
Add new DRI2 infrastructure.
2008-02-14 17:56:42 -05:00
Ian Romanick
f1257fd794
Cell: Fix unintended breakage from commit 1d62a057bc
2008-02-14 11:55:19 -08:00
Ian Romanick
77a1488620
Real-time assembler for Cell SPE.
2008-02-14 10:08:48 -08:00
Ian Romanick
dd07e154d2
Fetch routines convert and transpose all 4 vertices at once.
2008-02-14 10:08:48 -08:00
Ian Romanick
125451b9f0
Remove open-coded fetch functions
2008-02-14 10:08:48 -08:00
Ian Romanick
ca1a2da645
Initial pass at vertex cache, more vertex fetch changes
...
This is just another step towards dynamic generate of vertex fetch code.
2008-02-14 10:08:48 -08:00
Ian Romanick
c290367985
Vectorize a couple fetch functions
...
These C-coded vectorized functions are expected to be short lived.
They're basically a proof-of-concept for dynamically generated fetch
routines.
2008-02-14 10:08:48 -08:00
Michel Dänzer
0230c56ed0
intel_winsys: Call st_notify_swapbuffers_complete() after buffer swap.
2008-02-14 17:42:52 +00:00
Keith Whitwell
cf5ef20f43
gallium: Cleanups related to clears.
2008-02-14 16:53:51 +00:00
caner
5047a8ae19
miniglx doc updates
2008-02-14 09:33:26 -07:00
Keith Whitwell
18e94e15c0
gallium: Minor cleanups to bitfield sizes, etc.
2008-02-14 13:36:21 +00:00
Keith Whitwell
f3f7ff2573
tgsi: partially unbreak sse fragment shaders. more to do.
2008-02-14 12:14:46 +00:00
Xiang, Haihao
4813946d36
i965: use setup attributes as inputs when allocating registers
...
for WM payload. fix #10767
2008-02-14 13:24:27 +08:00