Keith Whitwell
fe60dbc536
st: also check for a8 texture support in bitmap code
2009-03-09 15:20:11 +00:00
Roland Scheidegger
1ebc92b0d0
fix typo in fragment pipe alu define, should fix dot3_rgb tex combine
2009-03-09 15:53:41 +01:00
Keith Whitwell
ef5fd0b66a
vbo: yet tighter still usage of FLUSH_NEED_CURRENT
...
Previous change broke redbook/polys and probably others. I'm fairly
sure that drivers like r300 don't need to touch
ctx->Driver.NeedVertices, but this code is incredibly fragile and I'm
not confident about removing it from there. Hopefully this gets
things working again.
2009-03-09 14:40:34 +00:00
Keith Whitwell
fb8a9875f6
fp: enable a second texture unit and add a kil test for it
2009-03-09 14:08:52 +00:00
Michel Dänzer
317687cd94
Fix up another instance of _mesa_unreference_framebuffer().
2009-03-09 13:30:17 +01:00
Keith Whitwell
0756dc876c
vbo: stricter checks on Driver.NeedFlush
...
This variable is being used in the r300 driver to trigger a flush under
circumstances unrelated to the use in the vbo module. Tighten up the
checks in vbo so as to avoid conflict with r300.
Reported by Maciej Cencora <m.cencora@gmail.com>
2009-03-09 12:18:51 +00:00
Michel Dänzer
a2aedf95d8
gallium: Fix p_refcnt.h for C++ compilers.
2009-03-09 12:58:16 +01:00
Michal Krol
9438ffda50
tgsi: Implement CND, CND0 opcodes.
2009-03-09 08:51:44 +01:00
Michal Krol
5ee3c79959
tgsi: Remove redundant micro_ge() -- use micro_le().
2009-03-09 08:51:41 +01:00
Michal Krol
0d727fa0f0
tgsi: Document ATI_fragment_shader instruction set operations.
2009-03-09 08:51:39 +01:00
Corbin Simpson
40ca02a045
r300-gallium: Unbreak trivial/point.
...
Oops, forgot to remove that.
Edit: And trivial/line and trivial/tri.
2009-03-08 15:05:49 -07:00
Michal Krol
8766677ac4
tgsi: Document NV_vertex_program instruction set operations.
2009-03-08 19:16:36 +01:00
Corbin Simpson
2305642b2e
r300-gallium: Correct vertex format setup, cleanup regs and debugging.
...
trivial/point no longer hardlocks.
2009-03-07 13:28:03 -08:00
Corbin Simpson
46de433d27
r300-gallium: Clean up RS.
...
Wow, there were buggies by the boatload in there.
2009-03-07 13:28:02 -08:00
Corbin Simpson
8262974625
r300-gallium: Move a few registers.
...
These shouldn't be written if not on TCL HW.
2009-03-07 13:28:02 -08:00
Brian Paul
460e5b11c9
mesa: s/int/GLsizeiptr/ to silence warning with 64-bit build
2009-03-07 13:30:03 -07:00
Brian Paul
799f55803d
gallium: use unsigned long to silence warnings with 64-bit build
2009-03-07 13:23:08 -07:00
Brian Paul
3377cd535e
r300: remove assignment to removed StringPos field
2009-03-07 13:20:50 -07:00
Brian Paul
4045a2c7d3
mesa: move shared context state functions to new shared.c file
2009-03-07 13:14:37 -07:00
Brian Paul
2e798e4b7e
vbo: make bind_array_obj() code a little more concise
2009-03-07 12:42:34 -07:00
Brian Paul
39c203507a
mesa: use @ to silence some Makefile output
2009-03-07 12:36:16 -07:00
Brian Paul
2c37851595
mesa: move glViewport and glDepthRange functions into new viewport.c file
...
A bit of refactoring with an eye toward ES2 and GL 3.1
2009-03-07 12:33:11 -07:00
Brian Paul
4de5abee39
swrast: remove old comment
2009-03-07 12:11:44 -07:00
Brian Paul
2ee5ba0411
swrast: rename s_buffers.c -> s_clear.c
2009-03-07 12:09:33 -07:00
Brian Paul
b4026d9be8
mesa: gl_register_file enum typedef
2009-03-07 12:02:52 -07:00
Brian Paul
69e07bdeb4
mesa: remove GL_MESA_program_debug extension
...
This was never fully fleshed out and hasn't been used.
2009-03-07 11:53:18 -07:00
Brian Paul
34e77493ce
mesa: silence warning
2009-03-07 11:49:45 -07:00
Brian Paul
0f04a1d3f8
mesa: remove last of _mesa_unreference_framebuffer() calls
2009-03-07 11:32:18 -07:00
Maciej Cencora
b125af1d25
r300: shut up valgrind
...
It complained about uninitialized values
Signed-off-by: Nicolai Haehnle <nhaehnle@gmail.com>
2009-03-07 16:20:16 +01:00
Corbin Simpson
ec1476bf31
r300-gallium: Typo in assert.
2009-03-07 00:55:10 -08:00
Corbin Simpson
709ebabb26
r300-gallium: Emit vertex size.
...
Not actually going to make a difference right now, but might as well.
2009-03-07 00:51:11 -08:00
Corbin Simpson
dcd7f1c055
r300-gallium: A bit more vertex format fixup.
2009-03-07 00:42:12 -08:00
Ben Skeggs
67f2c6054c
nouveau: use bo_handle_ref instead of bo_fake to get front-buffer bo
...
This'll work on non-GEM also as the DDX will just pass an offset, and
libdrm_nouveau knows to treat "handle" as a VRAM offset. When running
on GEM the DDX (it doesn't yet, but will) passes a buffer handle
instead.
2009-03-07 17:49:10 +10:00
Ben Skeggs
22125f63b9
nv50: simplify tesla object selection
...
GeForce 8/9 are a bit more consistent than nv40 so far, so this was
overkill before.
2009-03-07 17:49:10 +10:00
Ben Skeggs
51fa4d47ea
nouveau: fix more breakage from pipe_reference..
2009-03-07 17:49:09 +10:00
Ben Skeggs
ca95d71a4b
nouveau: make stateobjs start off with refcount of 1
2009-03-07 17:49:09 +10:00
Victor Stinner
f2ec26cf52
Fix nv50_screen_create()
...
Setup screen->pipe before using it (screen->constbuf =
screen->pipe.buffer_create(...))
2009-03-07 17:49:08 +10:00
Victor Stinner
19229fcf3a
Fix nouveau_pipe_create() / nouveau_context_init(): raise an error if the screen/pipe creation failed
2009-03-07 17:49:08 +10:00
Alan Coopersmith
a06dd4de87
Add Solaris to OS'es using PROT_EXEC mmap() to get executable heap space
...
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-03-06 20:06:26 -08:00
Corbin Simpson
6ebd6c898a
r300-gallium: Fix masking on vertex formats.
...
Gah, what a simple yet terrible mistake.
2009-03-06 19:07:54 -08:00
Corbin Simpson
95476635c5
r300-gallium: Remove unknown regs.
...
Leftovers from fglrx traces, probably.
2009-03-06 19:07:53 -08:00
Corbin Simpson
e23e93b7b4
r300-gallium: Actually do framebuffer setup.
...
Can't believe this wasn't wired up.
2009-03-06 19:07:53 -08:00
Corbin Simpson
fc96ac3c04
r300-gallium: Make sure registers are inside BEGIN/END CS.
2009-03-06 19:07:53 -08:00
Corbin Simpson
7e45d68d4d
r300-gallium: Separate out fog block.
...
We'll never actually use fog block. (I hope.)
2009-03-06 19:07:53 -08:00
Brian Paul
0945b78244
glsl: call the program optimizer
...
This still needs more testing bug glean and Mesa GLSL tests seem OK.
2009-03-06 16:21:21 -07:00
Brian Paul
e60b3067d8
i965: check if we run out of GRF/temp registers
...
Before this change we would up emitting instructions with invalid register
numbers. This typically (but not always) hung the GPU. For now, just
prevent emitting bad instructions to avoid hangs. Still need to do some
kind of proper error recovery.
2009-03-06 16:21:21 -07:00
Brian Paul
d42cfa6e6e
mesa: added _mesa_read_shader() function to read shaders from files
...
Useful for debugging to override an application's shader.
2009-03-06 16:21:21 -07:00
Brian Paul
2eacc4aafa
i965: bump up BRW_EU_MAX_INSN
...
This is the size of the intermediate instruction buffer.
2009-03-06 16:21:20 -07:00
Brian Paul
82f1c0be13
mesa: add new program optimizer code
...
This is pretty simplistic for now, but helps with certain shaders.
2009-03-06 16:21:20 -07:00
Brian Paul
faae1994c9
i965: comments
2009-03-06 16:21:20 -07:00