Brian Paul
681a13e7f9
mesa: minor Makefile improvement for versioning
2009-02-05 08:39:10 -07:00
Brian Paul
099e9d20f0
gallium: fixup #includes: p_screen.h does not need anything in p_state.h
2009-02-05 08:23:00 -07:00
Brian Paul
0703b2e9ad
gallium: move 'struct pipe_winsys'
...
Not used in p_state.h but used in p_context.h and p_screen.h
2009-02-05 08:16:56 -07:00
Ben Skeggs
75f0b38d9e
nv50: stop using nouveau_push.h, it's evil
2009-02-05 18:42:17 +10:00
Ben Skeggs
ff8dff017e
nv04-nv40: move 2d blit/fill code into pipe driver
2009-02-05 18:22:41 +10:00
Ben Skeggs
13393736db
nv50: move 2d blit/fill code into pipe driver
2009-02-05 14:04:45 +10:00
Ben Skeggs
ae8a7544d1
nouveau: support getting "native" bo from winsys
2009-02-05 13:18:44 +10:00
Brian Paul
285b500bb7
glsl: use _slang_var_swizzle() in a few places to simplify the code.
2009-02-04 17:40:51 -07:00
Brian Paul
d96d8b21bf
glsl: remove unused prototype
2009-02-04 17:37:20 -07:00
Brian Paul
0744805d58
glsl: replace assertion with conditional in _slang_pop_var_table()
...
We were hitting the assertion when we ran out of registers, which can happen.
Also, add some additional assertions and freshen up some comments.
2009-02-04 17:32:07 -07:00
Corbin Simpson
fb8b794c69
r300: Add shader state stubs.
2009-02-04 16:07:39 -08:00
Brian Paul
1ca05a066b
mesa: more info in error messages
2009-02-04 16:33:25 -07:00
Brian Paul
8962bac0a1
swrast: add minor comments
2009-02-04 16:33:25 -07:00
Brian Paul
79e3441f66
Revert "docs: document new MESA_GLX_FORCE_DIRECT env var for the Xlib driver"
...
This reverts commit 2f51be75c5 .
2009-02-04 16:33:25 -07:00
Brian Paul
c35a5aeb70
mesa: make Xlib glXIsDirect() always return True
2009-02-04 16:33:25 -07:00
Brian Paul
c06c74c0b8
demos: remove unused function
2009-02-04 16:33:25 -07:00
Brian Paul
906c60d0b7
demos: silence uninitialized var warning
2009-02-04 16:33:25 -07:00
Brian Paul
803504e69f
mesa: minor error msg improvement
2009-02-04 16:33:25 -07:00
Chris Wilson
e92d97d75b
intel: Decode MI operands using specific length masks
...
The MI opcodes have different variable length masks, so use an operand
specific mask to decode the length.
2009-02-04 17:04:31 -05:00
Chris Wilson
05d130a35a
intel: Correct decoding of 3DSTATE_PIXEL_SHADER_CONSTANTS
...
A couple of minor typos that proclaimed an error in the wrong command, and
failed to offset the mask.
2009-02-04 16:56:31 -05:00
Eric Anholt
b2e09910f6
intel: Fix fbo_firecube regression with FBconfigs change.
...
By selecting a 4444 texture format due to a bad test, we hit the
intel_update_wrapper error path, and despite the appearance of error handling
in it and its callers, the desired behavior (software fallback) doesn't occur.
2009-02-04 10:31:04 -08:00
Maciej Cencora
c20df0ab4e
r300: make the macros safe. add missing parenthesis.
2009-02-04 08:01:52 -07:00
Maciej Cencora
5ee71bad7b
r300: Fix EXP2 fog
2009-02-04 08:01:52 -07:00
Ben Skeggs
ee97bcc66c
nouveau: notifier timeout is a float now
2009-02-04 21:08:41 +10:00
Ben Skeggs
79bf0bdc7f
nouveau: get things building/running again after pipe_surface.buffer removal
...
Don't look at nouveau_winsys_pipe.h... I promise it's temporary!
2009-02-04 21:07:28 +10:00
Ben Skeggs
c10fb95790
nouveau: link against libdrm_nouveau (installed with libdrm)
2009-02-04 19:41:12 +10:00
Corbin Simpson
9f10b16790
r300: A bit more cleanup and state handling.
2009-02-04 00:50:38 -08:00
Corbin Simpson
f097465bb8
r300: Moar swtcl emit. Still sucks, but getting there.
2009-02-03 22:55:30 -08:00
Eric Anholt
8910da5b7a
intel: Fix commented-out glViewport in intel_meta_set_passthrough_transform.
...
Too much commit -a while debugging.
2009-02-03 20:06:48 -08:00
Eric Anholt
529d1d720e
swrast: Add support for x8r8g8b8 fbconfig.
...
This lets swrast produce an fbconfig suitable for the root visual now that
the server's not allowing mismatched fbconfigs.
2009-02-03 20:06:48 -08:00
Brian Paul
2f51be75c5
docs: document new MESA_GLX_FORCE_DIRECT env var for the Xlib driver
2009-02-03 15:36:38 -07:00
Brian Paul
49e80bf6b1
xlib: use MESA_GLX_FORCE_DIRECT to make glXIsDirect() always return True
...
Some apps won't run w/ indirect rendering contexts.
Also, consolidate some context-init code in new init_glx_context() function.
2009-02-03 15:36:38 -07:00
Brian Paul
b5d549e351
mesa: simplify delete_wrapper()
2009-02-03 15:36:38 -07:00
Brian Paul
dd22f6f795
demos: modify bufferobj.c to exercise interleaved vertex arrays
...
Also, put colors before vertex positions, and place the data at a 40-byte
offset from the start of the buffer.
2009-02-03 15:17:26 -07:00
Alan Hourihane
a47965588f
mesa: fix offset problem with interleaved arrays
2009-02-03 20:08:47 +00:00
Zack Rusin
e0c3b4970d
gallium: adjust gdi for the latest changes
2009-02-02 23:54:28 -05:00
Zack Rusin
5069bfed29
gallium: remove pipe_buffer from surfaces
...
this change disassociates, at least from the driver perspective,
the surface from buffer. surfaces are technically now views on the
textures so make it so by hiding the buffer in the internals of
textures.
2009-02-02 23:47:16 -05:00
Corbin Simpson
e5018a5675
r300: Add stubs for swtcl immediate emit.
2009-02-02 20:33:57 -08:00
Joakim Sindholt
e1b04da9b3
r300: fix compiler/linker errors
2009-02-02 18:24:55 -08:00
Corbin Simpson
3aabfa4608
r300: Clear up XXX in r300_state.
2009-02-02 16:39:43 -08:00
Corbin Simpson
fa3c59136e
r300: Take care of some XXXes.
2009-02-02 16:13:41 -08:00
Brian Paul
8e8b25c26a
demos: update multitex.c GLSL demo to use vertex arrays or glVertex-mode
...
Press 'a' to toggle drawing mode.
2009-02-02 16:51:45 -07:00
Brian Paul
4c5f390328
util: added more functions to extfuncs.h
2009-02-02 16:51:45 -07:00
Brian Paul
dea0d4d563
mesa: fix GLSL issue preventing use of all 16 generic vertex attributes
...
Only 15 actually worked before since we always reserved generic[0] as an
alias for vertex position.
The case of vertex attribute 0 is tricky. The spec says that there is no
aliasing between generic vertex attributes 0..MAX_VERTEX_ATTRIBS-1 and the
conventional attributes. But it also says that calls to glVertexAttrib(0, v)
are equivalent to glVertex(v). The distinction seems to be in glVertex-mode
versus vertex array mode.
So update the VBO code so that if the shader uses generic[0] but not gl_Vertex,
route the attribute data set with glVertex() to go to shader input generic[0].
No change needed for the glDrawArrays/Elements() path.
This is a potentially risky change so regressions are possible. All the usual
tests seem OK though.
2009-02-02 16:51:45 -07:00
Brian Paul
1cb7cd1292
glsl: update program->InputsRead when referencing input attributes
...
This info will be used in the linker for allocating generic vertex attribs.
2009-02-02 16:51:45 -07:00
Brian Paul
e33edafb2c
mesa: fix stand-alone glslcompiler
2009-02-02 16:51:45 -07:00
Brian Paul
d2eff33ab7
mesa: make _mesa_fprint_program_opt() non-static
2009-02-02 16:51:45 -07:00
Corbin Simpson
33d798c4ea
r300: Move some registers around.
...
This fixes r500 hangs.
2009-02-02 15:39:30 -08:00
Eric Anholt
052c1d66a1
i965: Remove brw->attribs now that we can just always look in the GLcontext.
2009-02-02 15:34:10 -08:00
Eric Anholt
14321fcfde
i965: Delete old metaops code now that there are no remaining consumers.
2009-02-02 15:34:09 -08:00