Corbin Simpson
ada7ced189
r300-gallium: vs: Dot products.
2009-04-15 15:10:23 -07:00
Eric Anholt
43257c1470
i965: Clean up output of WM SS state dump, and add format output.
2009-04-15 12:55:51 -07:00
Eric Anholt
bbae8791d1
i915: Use DEBUG_WM (like 965) for printing the fragment program out.
...
This is nice when paired with INTEL_DEBUG=batch for debugging what's going
out to the hardware.
2009-04-15 12:55:51 -07:00
Eric Anholt
0af7e9170f
i915: Add decode of dest buffer variables (destination format)
2009-04-15 12:55:51 -07:00
Eric Anholt
c710430f3a
mesa: Update texenv program when _NEW_ARRAYS is updated as well.
...
This fixes a regression in fbotest1 on 915, where a transition from
color+vertex array enabled to texcoord0+vertex array enabled wouldn't trigger
program update on the second _mesa_update_state of DrawArrays, and we'd sample
a constant texcoord of 0,0,0,1 instead of the array.
The double state update in DrawArrays from
1680ef8696
still needs fixing.
2009-04-15 12:55:50 -07:00
Eric Anholt
8bc3a6eb19
intel: Fix segfault when doing SW mipmap generation with a PBO texture upload.
...
Triggered in test-fbo from clutter since
37fb2d9b23
.
2009-04-15 12:55:50 -07:00
José Fonseca
af9d202b26
mesa: TGSI translation of multiple render targets.
2009-04-15 20:08:33 +01:00
Brian Paul
05471828dc
glx: added null pointer check in glXGetFBConfigs()
...
Fixes segfault seen with glxinfo with NVIDIA OpenGL.
2009-04-15 08:01:45 -06:00
Brian Paul
7db7ff878d
mesa: merge the prog_src_register::NegateBase and NegateAbs fields
...
There's really no need for two negation fields. This came from the
GL_NV_fragment_program extension. The new, unified Negate bitfield applies
after the absolute value step.
2009-04-14 22:14:30 -06:00
Brian Paul
0115a4f8f1
mesa: remove unused matrixType param from ctx->Driver.UniformMatrix() functions
2009-04-14 20:00:28 -06:00
Brian Paul
62c45ec951
mesa: move #define for GL_PROGRAM_BINARY_LENGTH_OES
2009-04-14 19:56:59 -06:00
Brian Paul
fe278f1e60
mesa: remove NV vertex/fragment program print/debug code
...
The code in prog_print.c can be used instead.
2009-04-14 19:53:37 -06:00
Brian Paul
cdc7f681c8
mesa: use standard offsetof() macro
2009-04-14 19:44:16 -06:00
Brian Paul
92cc997003
i965: fix VS constant buffer reads
...
This mostly came down to finding the right MRF incantation in the
brw_dp_READ_4_vs() function.
Note: this feature is still disabled (but getting close to done).
2009-04-14 16:05:37 -06:00
Adam Jackson
a3c3c1f143
glx: Make glXGetScreenDriver() work for DRI2
2009-04-14 17:56:29 -04:00
José Fonseca
71793e0f79
scons: Support winddk 6001.18002.
2009-04-14 21:43:10 +01:00
José Fonseca
5ccbccb3c1
scons: Recent Windows DDK do not include LIB.EXE.
...
Have to use LINK /LIB instead. The biggest problem is when the command
line is very long and all the options are included in a argument file --
link doesn't like if /LIB is included in the argument file.
2009-04-14 21:43:10 +01:00
José Fonseca
1ea7f0fef0
mesa: Fix gcc assembly enable logic.
...
The i386 symbol is defined on WINDDK.
2009-04-14 21:43:10 +01:00
Ian Romanick
153012b29b
DRI2: Don't fault on NULL DrawBuffer
...
It is possible for ctx->DrawBuffer to be NULL, so don't fault when
that happens. This change is not being committed to master because it
doesn't appear to be necessary there.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Cherry picked from mesa_7_4_branch, commit 49e0c74ddd91900fc4effb6d305d56e0563b456d
2009-04-14 14:32:52 -06:00
Brian Paul
cafea75280
i965: checkpoint commit: VS constant buffers
...
Hook up a constant buffer, binding table, etc for the VS unit.
This will allow using large constant buffers with vertex shaders.
The new code is disabled at this time (use_const_buffer=FALSE).
2009-04-14 11:08:42 -06:00
Younes Manton
43c7ffaea6
dri glx: Swap before checking for cliprects.
...
We don't update drawables anymore unless they are completely
uninitialized, so we need to swap even if we don't have
cliprects yet, otherwise we never end up calling the driver's
SwapBuffers(). The driver should update the drawable in its
SwapBuffers() anyway.
See 8e753d0404
,
"dri glx: Fix dri_util::driBindContext" for the change that
exposed it.
2009-04-13 21:34:53 -04:00
Ben Skeggs
352de305bd
nv50: fix mrt clear
2009-04-13 14:41:06 +10:00
Corbin Simpson
9340c994b7
r300-gallium: Split up vertex format tallying for HW and SW TCL.
...
This makes things draw (again) with HW TCL. Yay?
2009-04-10 18:35:58 -07:00
Corbin Simpson
1b5b083d5c
r300-gallium: Finish up cleanup of vertex format state.
...
This makes texcoords route properly, and also fixes a few asserts.
2009-04-10 18:35:57 -07:00
Corbin Simpson
e825609d81
r300-gallium: Clean up vertex format setup.
2009-04-10 18:35:57 -07:00
Brian Paul
4e96c81969
i965: remove unused var
2009-04-10 16:22:41 -06:00
Brian Paul
60ad4b0bf0
i965: clean-up in prepare_wm_surfaces()
2009-04-10 16:22:41 -06:00
Brian Paul
3444567050
mesa: reduce makefile output
2009-04-10 16:22:41 -06:00
José Fonseca
11084d5827
wgl: Protect the framebuffer with a lock.
...
Unfortunately this doesn't catch all the cases, as the mesa state tracker
can still use the framebuffer without giving the wgl state tracker
the chance to lock it.
2009-04-10 19:50:35 +01:00
José Fonseca
6fc244c68d
wgl: Note down the gallium pixel formats, instead of re-guessing them.
2009-04-10 19:50:35 +01:00
José Fonseca
aa405a2a77
wgl: Query the screen for supported formats.
2009-04-10 19:50:35 +01:00
José Fonseca
0bca413ce9
wgl: Walk through the pixel formats combinations.
2009-04-10 19:50:35 +01:00
José Fonseca
e5d700721b
wgl: Keep copies of the PIXELFORMATDESCRIPTOR structures.
2009-04-10 19:50:34 +01:00
Robert Noland
48f0543b39
Build dri drivers for powerpc and sparc on FreeBSD.
2009-04-10 12:55:50 -05:00
Brian Paul
d60b4f7885
mesa: asst. progs/test/Makefile files
2009-04-10 08:54:37 -06:00
Brian Paul
23a911b4a6
i965: added null const_buffer pointer check in update_constant_buffer()
2009-04-10 08:36:19 -06:00
Brian Paul
ded05d32d5
intel: added screen->dri2.loader null pointer check in intel_flush()
...
Fixes segfaults when rendering to front buffer.
2009-04-10 08:36:19 -06:00
Brian Paul
88999de8b7
gallium: remove pipe_texture::compressed field
...
The format field encodes compressed vs. uncompressed already. We can easily
check if a texture is compressed with pf_is_compressed(texture->format).
2009-04-10 08:05:10 -06:00
José Fonseca
0a2269703c
wgl: Slightly simplify pixelformat creation.
2009-04-10 13:26:36 +01:00
José Fonseca
f8f4b03442
progs: Port glxinfo to wgl.
2009-04-10 13:26:35 +01:00
José Fonseca
46857f3c66
mesa: Don't define WGL_ARB_extensions_string in mesa_wgl.h.
...
It breaks wglext.h as it doesn't define PFNWGLGETEXTENSIONSSTRINGARBPROC.
2009-04-10 13:26:35 +01:00
José Fonseca
87b04ce59b
wgl: Move pixel format information into device structure.
2009-04-10 13:26:35 +01:00
José Fonseca
3f2420e2e0
wgl: Combine alpha pixelformat info in color.
2009-04-10 13:26:35 +01:00
José Fonseca
2921a49033
stw: Reorder the pixelformats, so that no alpha pixelformats get chosen before alpha.
...
Some applications might not handle a alpha visual when when they did not
request for one.
2009-04-10 13:26:35 +01:00
José Fonseca
0dd81ec97b
stw: Don't make assumptions about integer size.
2009-04-10 13:26:34 +01:00
José Fonseca
f14497a9cd
stw: Free the mesa framebuffer.
2009-04-10 13:26:34 +01:00
Michal Krol
5fae9514c2
tgsi/sse2: Cleanup NRM/NRM4 implementation.
...
Fix comments.
Make sure .w is set to 1.0 for NRM.
Optimise for non-.xyzw writemasks.
2009-04-10 11:58:49 +02:00
Michal Krol
05c70f8f5d
rtasm: Silence `static function not used' warning.
2009-04-10 09:07:22 +02:00
Michal Krol
13be57df3a
draw: Silence pointer-to-integer cast warning.
2009-04-10 09:07:19 +02:00
Michal Krol
f4cc0692e6
draw: Fix vertex_header initialisation.
2009-04-10 09:07:17 +02:00