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.
16 years ago
Brian Paul
0115a4f8f1
mesa: remove unused matrixType param from ctx->Driver.UniformMatrix() functions
16 years ago
Brian Paul
62c45ec951
mesa: move #define for GL_PROGRAM_BINARY_LENGTH_OES
16 years ago
Brian Paul
fe278f1e60
mesa: remove NV vertex/fragment program print/debug code
The code in prog_print.c can be used instead.
16 years ago
Brian Paul
cdc7f681c8
mesa: use standard offsetof() macro
16 years ago
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).
16 years ago
Adam Jackson
a3c3c1f143
glx: Make glXGetScreenDriver() work for DRI2
16 years ago
José Fonseca
71793e0f79
scons: Support winddk 6001.18002.
16 years ago
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.
16 years ago
José Fonseca
1ea7f0fef0
mesa: Fix gcc assembly enable logic.
The i386 symbol is defined on WINDDK.
16 years ago
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 49e0c74ddd
16 years ago
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).
16 years ago
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 8e753d04045a82062ac34d3b2622eb9dba8af374,
"dri glx: Fix dri_util::driBindContext" for the change that
exposed it.
16 years ago
Ben Skeggs
352de305bd
nv50: fix mrt clear
16 years ago
Corbin Simpson
9340c994b7
r300-gallium: Split up vertex format tallying for HW and SW TCL.
This makes things draw (again) with HW TCL. Yay?
16 years ago
Corbin Simpson
1b5b083d5c
r300-gallium: Finish up cleanup of vertex format state.
This makes texcoords route properly, and also fixes a few asserts.
16 years ago
Corbin Simpson
e825609d81
r300-gallium: Clean up vertex format setup.
16 years ago
Brian Paul
4e96c81969
i965: remove unused var
16 years ago
Brian Paul
60ad4b0bf0
i965: clean-up in prepare_wm_surfaces()
16 years ago
Brian Paul
3444567050
mesa: reduce makefile output
16 years ago
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.
16 years ago
José Fonseca
6fc244c68d
wgl: Note down the gallium pixel formats, instead of re-guessing them.
16 years ago
José Fonseca
aa405a2a77
wgl: Query the screen for supported formats.
16 years ago
José Fonseca
0bca413ce9
wgl: Walk through the pixel formats combinations.
16 years ago
José Fonseca
e5d700721b
wgl: Keep copies of the PIXELFORMATDESCRIPTOR structures.
16 years ago
Robert Noland
48f0543b39
Build dri drivers for powerpc and sparc on FreeBSD.
16 years ago
Brian Paul
d60b4f7885
mesa: asst. progs/test/Makefile files
16 years ago
Brian Paul
23a911b4a6
i965: added null const_buffer pointer check in update_constant_buffer()
16 years ago
Brian Paul
ded05d32d5
intel: added screen->dri2.loader null pointer check in intel_flush()
Fixes segfaults when rendering to front buffer.
16 years ago
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).
16 years ago
José Fonseca
0a2269703c
wgl: Slightly simplify pixelformat creation.
16 years ago
José Fonseca
f8f4b03442
progs: Port glxinfo to wgl.
16 years ago
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.
16 years ago
José Fonseca
87b04ce59b
wgl: Move pixel format information into device structure.
16 years ago
José Fonseca
3f2420e2e0
wgl: Combine alpha pixelformat info in color.
16 years ago
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.
16 years ago
José Fonseca
0dd81ec97b
stw: Don't make assumptions about integer size.
16 years ago
José Fonseca
f14497a9cd
stw: Free the mesa framebuffer.
16 years ago
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.
16 years ago
Michal Krol
05c70f8f5d
rtasm: Silence `static function not used' warning.
16 years ago
Michal Krol
13be57df3a
draw: Silence pointer-to-integer cast warning.
16 years ago
Michal Krol
f4cc0692e6
draw: Fix vertex_header initialisation.
16 years ago
Brian Paul
6c2d1e6839
swrast: remove some unneeded CHAN_TYPE!=GL_FLOAT code
16 years ago
Brian Paul
92d3b2a4da
gallium: comments for surface_copy(), surface_fill() in p_context.h
16 years ago
Brian Paul
20f3497e4b
i965: re-org of some of the new constant buffer code
Plus, begin the new code for vertex shader const buffers.
16 years ago
Brian Paul
08a1e1ebcb
demos: fix aspect ratio in Reshape()
16 years ago
Brian Paul
2078e6cf55
i965: new SURF_INDEX_ macros
Used to map drawables, textures and constant buffers to surface binding
table indexes.
16 years ago
Brian Paul
7e0d4598fb
gallium: change // comment to /* */ style
16 years ago
Brian Paul
985e71866a
gallium: updated comments in p_screen.h
16 years ago
Brian Paul
a35e745826
i965simple: remove pipe_texture::compressed reference
16 years ago