Commit graph

21825 commits

Author SHA1 Message Date
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
Brian Paul
f874dc6395 i965: comments and minor clean-ups 2009-03-06 16:21:20 -07:00
Brian Paul
5cbd1170da i965: avoid unnecessary calls to brw_wm_is_glsl()
This function scans the shader to see if it has any GLSL features like
conditionals and loops.  Calling this during state validation is expensive.
Just call it when the shader is given to the driver and save the result.

There's some new/temporary assertions to be sure we don't get out of sync
on this.
2009-03-06 16:21:20 -07:00
Maciej Cencora
99e4809f5d r300: fix depth write regression (found by Nicolai Haehnle)
Signed-off-by: Nicolai Haehnle <nhaehnle@gmail.com>
2009-03-06 22:19:44 +01:00
Maciej Cencora
0828bfaa45 r300: enable EXT_fog_coord extension
Remove fixed function fog setup.

Signed-off-by: Nicolai Haehnle <nhaehnle@gmail.com>
2009-03-06 22:19:44 +01:00
Maciej Cencora
7ad7abc4cd r300: route fog coord and W pos correctly
Also cleanup sw tcl vertex buffer setup

Signed-off-by: Nicolai Haehnle <nhaehnle@gmail.com>
2009-03-06 22:19:43 +01:00
Maciej Cencora
d8b8fb6895 r300: rewrite and hopefully simplify RS setup
Testing and regression fixes by Markus Amsler

Signed-off-by: Nicolai Haehnle <nhaehnle@gmail.com>
2009-03-06 22:19:43 +01:00
Maciej Cencora
25dfbb03f8 r300: add few macros for RS setup
Signed-off-by: Nicolai Haehnle <nhaehnle@gmail.com>
2009-03-06 22:19:43 +01:00
Maciej Cencora
ee56c5e73b r300: silence valgrind
Signed-off-by: Nicolai Haehnle <nhaehnle@gmail.com>
2009-03-06 22:19:43 +01:00
Maciej Cencora
3fa6a6df75 r300: Print reg address when debugging is enabled
Signed-off-by: Nicolai Haehnle <nhaehnle@gmail.com>
2009-03-06 22:19:43 +01:00
Keith Whitwell
185ff38895 fp: add some more texture, position and kill tests 2009-03-06 21:15:19 +00:00
Keith Whitwell
2dd9a0197c fp: new kill + position test 2009-03-06 21:00:18 +00:00
Keith Whitwell
52a68b9078 fp: dont reference fragment.position.zw 2009-03-06 21:00:18 +00:00
Keith Whitwell
b258320dbd engine: also print fps data to stdout
Useful for figuring out how much of a perf impact the glBitmap fps
display has on a given driver.
2009-03-06 21:00:18 +00:00
Maciej Cencora
005ad1a71d r300: don't crash on sw tcl hw if point size vertex attrib is sent 2009-03-06 21:55:12 +01:00
Corbin Simpson
9c3796417f r300-gallium: GA enhancements.
Basically an errata fixup register.
2009-03-06 11:28:08 -08:00
Corbin Simpson
17331a77f6 r300-gallium: Flat/smooth shading state. 2009-03-06 11:17:55 -08:00
Corbin Simpson
d965c15777 r300-gallium: Pick up a few more bits of rs_state.
Including two registers that already should have been covered...huh...
2009-03-06 10:30:15 -08:00
José Fonseca
0bbcb47901 wgl: Check support for all other depth/stencil formats. 2009-03-06 18:04:25 +00:00
José Fonseca
78071fe767 wgl: Choose a supported S8Z24/Z24S8/X8Z24/Z24X8. 2009-03-06 18:04:25 +00:00