mesa.git
16 years agomklib: don't version symbols when using --exports
Julien Cristau [Sun, 13 Jul 2008 15:13:32 +0000 (17:13 +0200)]
mklib: don't version symbols when using --exports

Use the default version instead of one based on the library SONAME
in the version script created by --exports.

16 years agomesa: also check for __NetBSD__
Blair Sadewitz [Mon, 14 Jul 2008 14:15:10 +0000 (08:15 -0600)]
mesa: also check for __NetBSD__

16 years agomesa: check for null shader->Source
Brian Paul [Wed, 9 Jul 2008 21:58:31 +0000 (15:58 -0600)]
mesa: check for null shader->Source

16 years agoradeon: SetTexOffset support
Chris Rankin [Mon, 14 Jul 2008 08:09:58 +0000 (10:09 +0200)]
radeon: SetTexOffset support

This patch is a straightforward duplication of the R200 SetTexOffset code,
except that there is no big-endian tx_table[] array.

16 years agonouveau: say goodbye to the old DRI driver...
Stephane Marchesin [Sun, 13 Jul 2008 23:03:07 +0000 (01:03 +0200)]
nouveau: say goodbye to the old DRI driver...

16 years agoglx/dri: only report DRI2 extensions when DRI2 is enabled.
Dave Airlie [Sun, 13 Jul 2008 09:00:46 +0000 (19:00 +1000)]
glx/dri: only report DRI2 extensions when DRI2 is enabled.

Fixes bug 15477

16 years agor300_fragprog: Use nqssa+dce and program_pair for emit
Nicolai Haehnle [Sat, 12 Jul 2008 19:13:03 +0000 (21:13 +0200)]
r300_fragprog: Use nqssa+dce and program_pair for emit

Share almost all code with r500_fragprog now.

This also fixes Piglit's texrect-many test, which means that the compiz
bicubic plugin should work with hardware acceleration now.

16 years agoAlways pass -linker and -ldflags to mklib for shared libraries
Dan Nicholson [Sat, 12 Jul 2008 17:04:44 +0000 (10:04 -0700)]
Always pass -linker and -ldflags to mklib for shared libraries

This just makes the use of mklib more consistent throughout Mesa where
we always want to pass the linker and LDFLAGS when we might be making a
shared library.

16 years agoCall mklib with $(SHELL) so the user controls the interpreter
Dan Nicholson [Fri, 11 Jul 2008 20:54:48 +0000 (13:54 -0700)]
Call mklib with $(SHELL) so the user controls the interpreter

Respect the user's choice of shell when running mklib rather than always
using /bin/sh.

16 years agoCall minstall with $(SHELL) so the user controls the interpreter
Dan Nicholson [Tue, 8 Jul 2008 14:49:31 +0000 (07:49 -0700)]
Call minstall with $(SHELL) so the user controls the interpreter

Running minstall directly means that /bin/sh is always used as hte
interpreter. If the user needs or wants to use a different shell fo
minstall, they can use the SHELL make variable.

16 years agoSet $(SHELL) for all configs
Dan Nicholson [Tue, 8 Jul 2008 14:44:58 +0000 (07:44 -0700)]
Set $(SHELL) for all configs

Most make implementations will use /bin/sh as the interpreter for
commands and only use a different shell when the $(SHELL) make variable
is set. This makes the setting explicit and allows $(SHELL) to be used
in the commands themselves.

16 years agoautoconf: Subsitute SHELL for all platforms
Dan Nicholson [Mon, 30 Jun 2008 16:40:30 +0000 (09:40 -0700)]
autoconf: Subsitute SHELL for all platforms

Establish the shell that make will use from configure. This is exactly
how autoconf/automake operate, with the environment variable
CONFIG_SHELL respected to override the autoconf checks. In the usual
case where the user just executes `./configure', autoconf will pick a
shell from the current shell, sh, bash, ksh or sh5 that meets its base
criteria.

The special Solaris case of looking for a POSIX shell has been changed
to just set the SHELL variable since autoconf substitutes this already.
The EXTRA_CONFIG_LINES substitution is dropped as it should no longer be
needed.

16 years agor300: Fix saturate mode handling in radeon_program_alu
Nicolai Haehnle [Sat, 12 Jul 2008 10:20:28 +0000 (12:20 +0200)]
r300: Fix saturate mode handling in radeon_program_alu

16 years agor500: Set Saturate correctly in radeon_program_pair
Nicolai Haehnle [Sat, 12 Jul 2008 10:04:28 +0000 (12:04 +0200)]
r500: Set Saturate correctly in radeon_program_pair

16 years agor300: Fix input register allocation in radeon_program_pair
Nicolai Haehnle [Sat, 12 Jul 2008 09:11:59 +0000 (11:11 +0200)]
r300: Fix input register allocation in radeon_program_pair

When an input is marked in gl_program.InputsRead but is not actually read
in the final program (due to dead-code elimination or whatever), the order
of input registers must still match gl_program.InputsRead. This is done
even more explicitly now.

16 years agor300: Explicitly set absolute value for the argument of RSQ
Nicolai Haehnle [Fri, 11 Jul 2008 23:19:19 +0000 (01:19 +0200)]
r300: Explicitly set absolute value for the argument of RSQ

This fixes the last r500 bug related to glean/fragProg1.

16 years agor500_fragprog: Major refactoring of final emit
Nicolai Haehnle [Fri, 11 Jul 2008 23:14:35 +0000 (01:14 +0200)]
r500_fragprog: Major refactoring of final emit

Use an abstracted instruction scheduling and register allocation algorithm
that we will be able to share with r300_fragprog.

Unlike the original emit code, this code tries to pair instructions that
only use the RGB part of the ALU with instructions that only use the alpha
part. However, the pairing algorithm still has some shortcomings;
for example, it doesn't generate optimal code for the emulation of LIT.

16 years agor500: Add "Not quite SSA" and dead code elimination pass
Nicolai Haehnle [Sun, 6 Jul 2008 17:48:50 +0000 (19:48 +0200)]
r500: Add "Not quite SSA" and dead code elimination pass

In addition, this pass fixes non-native swizzles.

16 years agor500_fragprog: Transform trigonometric functions in first pass
Nicolai Haehnle [Sun, 6 Jul 2008 14:58:51 +0000 (16:58 +0200)]
r500_fragprog: Transform trigonometric functions in first pass

16 years agoR300: update vap_cntl values for NUM_FPUS
Alex Deucher [Fri, 11 Jul 2008 23:23:06 +0000 (19:23 -0400)]
R300: update vap_cntl values for NUM_FPUS

based on info from hw team

16 years agoRemove generated pkg-config files on `make clean'
Dan Nicholson [Fri, 11 Jul 2008 17:43:29 +0000 (10:43 -0700)]
Remove generated pkg-config files on `make clean'

16 years agoautoconf: Add information about the --x-* options to --help output
Dan Nicholson [Tue, 1 Jul 2008 16:03:15 +0000 (09:03 -0700)]
autoconf: Add information about the --x-* options to --help output

Try to tell the user that the --x-* options are only used when the X
libraries can't be found by pkg-config.

16 years agoautoconf: Tell the user about docs/autoconf.html in --help output
Dan Nicholson [Tue, 1 Jul 2008 15:55:42 +0000 (08:55 -0700)]
autoconf: Tell the user about docs/autoconf.html in --help output

The documentation in autoconf.html is much more explicit about how the
different configure options control the build. This adds a notice at the
end of the `./configure --help' output to tell the user about it.

16 years agointel: fix batch flushing problem with cliprects handling.
Dave Airlie [Thu, 10 Jul 2008 21:28:55 +0000 (07:28 +1000)]
intel: fix batch flushing problem with cliprects handling.

pointed out and debugged by stringfellow on #dri-devel

16 years agomesa: return -1, not GL_FALSE if _glapi_add_dispatch() fails name sanity check
Brian Paul [Wed, 9 Jul 2008 21:06:36 +0000 (15:06 -0600)]
mesa: return -1, not GL_FALSE if _glapi_add_dispatch() fails name sanity check

16 years agomesa: fix state.clip[n].plane parsing bug (bug 16611)
Brian Paul [Wed, 9 Jul 2008 14:35:50 +0000 (08:35 -0600)]
mesa: fix state.clip[n].plane parsing bug (bug 16611)

16 years agomesa: check for OpenBSD (bug 15604)
Brian Paul [Wed, 9 Jul 2008 13:48:46 +0000 (07:48 -0600)]
mesa: check for OpenBSD (bug 15604)

16 years agoi915: fall back to software rendering when shadow comparison is
Xiang, Haihao [Wed, 9 Jul 2008 05:08:09 +0000 (13:08 +0800)]
i915: fall back to software rendering when shadow comparison is
enabled for 1D texture. fix #12176

16 years agomesa: remove debug code
Brian Paul [Tue, 8 Jul 2008 22:52:45 +0000 (16:52 -0600)]
mesa: remove debug code

16 years agoadd yet another Makefile
Brian Paul [Tue, 8 Jul 2008 22:28:33 +0000 (16:28 -0600)]
add yet another Makefile

16 years agobump version to rc3
Brian Paul [Tue, 8 Jul 2008 22:26:28 +0000 (16:26 -0600)]
bump version to rc3

16 years agoadded more Makefiles to file list
Brian Paul [Tue, 8 Jul 2008 22:26:06 +0000 (16:26 -0600)]
added more Makefiles to file list

16 years agomesa: implement glGetUniformiv() with new ctx->Driver function
Brian Paul [Tue, 8 Jul 2008 22:17:04 +0000 (16:17 -0600)]
mesa: implement glGetUniformiv() with new ctx->Driver function

The old implementation could overwrite the caller's param buffer.

16 years agoadded src/mesa/drivers/Makefile to file list
Brian Paul [Tue, 8 Jul 2008 22:16:57 +0000 (16:16 -0600)]
added src/mesa/drivers/Makefile to file list

16 years agomesa: bump version to rc2
Brian Paul [Tue, 8 Jul 2008 21:12:48 +0000 (15:12 -0600)]
mesa: bump version to rc2

16 years agoadded null texObj ptr check (bug 15567)
Brian Paul [Tue, 8 Jul 2008 21:11:23 +0000 (15:11 -0600)]
added null texObj ptr check (bug 15567)

16 years agomesa: more debug output
Brian Paul [Tue, 8 Jul 2008 20:59:36 +0000 (14:59 -0600)]
mesa: more debug output

16 years agomesa: compute global var size before doing codegen
Brian Paul [Tue, 8 Jul 2008 19:05:34 +0000 (13:05 -0600)]
mesa: compute global var size before doing codegen

16 years agomesa: add missing VARYING case to storage_string()
Brian Paul [Tue, 8 Jul 2008 19:02:24 +0000 (13:02 -0600)]
mesa: add missing VARYING case to storage_string()

16 years agoi965: official name for GM45 chipset
Xiang, Haihao [Tue, 8 Jul 2008 06:14:04 +0000 (14:14 +0800)]
i965: official name for GM45 chipset

16 years agoglx: add LIBGL_ALWAYS_SOFTWARE
George Sapountzis [Mon, 7 Jul 2008 15:34:17 +0000 (18:34 +0300)]
glx: add LIBGL_ALWAYS_SOFTWARE

this disables accelerated DRI and fallbacks to client-side software rendering.

compile-tested only.

16 years agoautoconf: Allow commas or spaces to separate DRI drivers
Dan Nicholson [Sun, 6 Jul 2008 21:17:39 +0000 (14:17 -0700)]
autoconf: Allow commas or spaces to separate DRI drivers

Explicitly allow the argument to --with-dri-drivers to contain
comma-separated or space-separated drivers. A space-separated driver
list worked by chance before.

16 years agoSet library and header installation directories from configuration
Dan Nicholson [Thu, 3 Jul 2008 16:17:44 +0000 (09:17 -0700)]
Set library and header installation directories from configuration

Currently the installation directories for libraries and headers are
resolved within the install commands. For instance, the libraries will
be installed to $(INSTALL_DIR)/$(LIB_DIR). This limits the flexibility
of the installation, such as when the libraries should be installed to a
subdirectory like /usr/lib/tls.

This adds the make variables $(INSTALL_LIB_DIR) and $(INSTALL_INC_DIR)
to define the locations that the libraries and headers are installed.
For the static configs, this resolves exactly as before to
$(INSTALL_DIR)/include and $(INSTALL_DIR)/$(LIB_DIR). For autoconf, they
are derived directly from the --libdir and --includedir settings.

16 years agor500_fragprog: Fix RSQ with negative parameters
Nicolai Haehnle [Sun, 6 Jul 2008 14:39:31 +0000 (16:39 +0200)]
r500_fragprog: Fix RSQ with negative parameters

16 years agor300_fragprog: Emulate trigonometric functions in radeon_program_alu
Nicolai Haehnle [Sat, 5 Jul 2008 21:54:31 +0000 (23:54 +0200)]
r300_fragprog: Emulate trigonometric functions in radeon_program_alu

16 years agor300: Translate fragment program DST in radeon_program_alu
Nicolai Haehnle [Sat, 5 Jul 2008 20:44:37 +0000 (22:44 +0200)]
r300: Translate fragment program DST in radeon_program_alu

16 years agor300: Translate fragment program LRP in radeon_program_alu.c
Nicolai Haehnle [Sat, 5 Jul 2008 20:35:46 +0000 (22:35 +0200)]
r300: Translate fragment program LRP in radeon_program_alu.c

16 years agor300: Allow adding parameters during fragprog transform, share LIT code
Nicolai Haehnle [Sat, 5 Jul 2008 20:21:24 +0000 (22:21 +0200)]
r300: Allow adding parameters during fragprog transform, share LIT code

16 years agor300: Correctly scan for used temporary registers
Nicolai Haehnle [Sat, 5 Jul 2008 18:01:20 +0000 (20:01 +0200)]
r300: Correctly scan for used temporary registers

This fixes a regression introduced by dea8719f0...

16 years agor500: Major refactoring of fragment program emit
Nicolai Haehnle [Sat, 5 Jul 2008 14:07:37 +0000 (16:07 +0200)]
r500: Major refactoring of fragment program emit

Use the common facilities to convert non-native instructions into native ones.
Worked hard to make the code easier to read (hopefully), by using helper
functions instead of direct manipulation of the machine code.
Fixes two bugs related to FLR and XPD.

16 years agor300: Remove clause stuff for now in favour of a cloned generic gl_program
Nicolai Haehnle [Sat, 5 Jul 2008 09:53:39 +0000 (11:53 +0200)]
r300: Remove clause stuff for now in favour of a cloned generic gl_program

16 years agor500_fragprog: Cleanup some unused variables and code.
Nicolai Haehnle [Sat, 5 Jul 2008 08:58:54 +0000 (10:58 +0200)]
r500_fragprog: Cleanup some unused variables and code.

16 years agor500: Fix a mixup in fragment program LRP instruction emit
Nicolai Haehnle [Sat, 5 Jul 2008 08:24:27 +0000 (10:24 +0200)]
r500: Fix a mixup in fragment program LRP instruction emit

16 years agor500: Fix blend color.
Nicolai Haehnle [Sat, 5 Jul 2008 07:31:44 +0000 (09:31 +0200)]
r500: Fix blend color.

16 years ago_mesa_clone_program: Copy ShadowSamplers
Nicolai Haehnle [Sat, 5 Jul 2008 16:03:44 +0000 (18:03 +0200)]
_mesa_clone_program: Copy ShadowSamplers

16 years agor300: Fix depth texture in compare mode
Nicolai Haehnle [Fri, 4 Jul 2008 16:18:19 +0000 (18:18 +0200)]
r300: Fix depth texture in compare mode

Missed the homogenous divide of R by Q before...

16 years agoEnable TexGen based on InputsRead when a fragment program is active
Nicolai Haehnle [Sun, 29 Jun 2008 12:53:04 +0000 (14:53 +0200)]
Enable TexGen based on InputsRead when a fragment program is active

The old behaviour depended on which texture images the fragment program
reads from, which seems to contradict the shader specifications.

Note: Piglit's general/texgen test checks for this problem.

16 years agoGLSL-related bug fixes
Brian Paul [Fri, 4 Jul 2008 16:05:39 +0000 (10:05 -0600)]
GLSL-related bug fixes

16 years agomesa: generate GL_INVALID_OPERATION in _mesa_get_uniform_location() if program isn...
Brian Paul [Fri, 4 Jul 2008 15:58:55 +0000 (09:58 -0600)]
mesa: generate GL_INVALID_OPERATION in _mesa_get_uniform_location() if program isn't linked

16 years agomesa: remove incorrect assertion
Brian Paul [Fri, 4 Jul 2008 15:55:48 +0000 (09:55 -0600)]
mesa: remove incorrect assertion

16 years agoglcontextmodes.c is required remove the reference in .gitignore
Alan Hourihane [Fri, 4 Jul 2008 12:54:49 +0000 (13:54 +0100)]
glcontextmodes.c is required remove the reference in .gitignore

16 years agomesa: fix polygon offset issue (bug #12061)
Xiang, Haihao [Fri, 4 Jul 2008 01:53:51 +0000 (09:53 +0800)]
mesa: fix polygon offset issue (bug #12061)

16 years agomesa: fix various error codes
Brian Paul [Thu, 3 Jul 2008 22:21:11 +0000 (16:21 -0600)]
mesa: fix various error codes

16 years agomesa: fix some error codes in _mesa_ShaderSourceARB()
Brian Paul [Thu, 3 Jul 2008 22:02:05 +0000 (16:02 -0600)]
mesa: fix some error codes in _mesa_ShaderSourceARB()

16 years agomesa: fix problem freeing framebuffer/renderbuffer objects
Brian Paul [Thu, 3 Jul 2008 21:40:38 +0000 (15:40 -0600)]
mesa: fix problem freeing framebuffer/renderbuffer objects

Basically, set up no-op Delete() methods for the DummyFrame/Renderbuffer objects.

16 years agomesa: additional error checking, fix error codes
Brian Paul [Thu, 3 Jul 2008 19:49:48 +0000 (13:49 -0600)]
mesa: additional error checking, fix error codes

16 years agomesa: regenerated file
Brian Paul [Thu, 3 Jul 2008 19:24:28 +0000 (13:24 -0600)]
mesa: regenerated file

16 years agomesa: additional vec4 constructor
Brian Paul [Thu, 3 Jul 2008 19:24:19 +0000 (13:24 -0600)]
mesa: additional vec4 constructor

16 years agomesa: fix array storage allocation bug
Brian Paul [Thu, 3 Jul 2008 19:05:28 +0000 (13:05 -0600)]
mesa: fix array storage allocation bug

16 years agomesa: fix incorrect array size, added assertion
Brian Paul [Thu, 3 Jul 2008 19:03:35 +0000 (13:03 -0600)]
mesa: fix incorrect array size, added assertion

16 years agomesa: fix vertex array validation test for attribute 0 (vert pos)
Brian Paul [Thu, 3 Jul 2008 01:17:11 +0000 (19:17 -0600)]
mesa: fix vertex array validation test for attribute 0 (vert pos)

We don't actually need vertex array[0] enabled when using a vertex
program/shader.

16 years agomesa: when linking a shader program, make sure all the shaders compiled OK
Brian Paul [Wed, 2 Jul 2008 22:51:49 +0000 (16:51 -0600)]
mesa: when linking a shader program, make sure all the shaders compiled OK

16 years agomesa: added some debug code (disabled)
Brian Paul [Wed, 2 Jul 2008 22:50:52 +0000 (16:50 -0600)]
mesa: added some debug code (disabled)

16 years agomesa: fix error codes in _mesa_shader_source(), _mesa_get_shader_source()
Brian Paul [Wed, 2 Jul 2008 22:40:24 +0000 (16:40 -0600)]
mesa: fix error codes in _mesa_shader_source(), _mesa_get_shader_source()

If the 'shader' parameter is wrong, need to either generate GL_INVALID_VALUE
or GL_INVALID_OPERATION.  It depends on whether 'shader' actually names a
'program' or is a totally unknown ID.
There might be other cases to fix...

16 years agomesa: regenerated
Brian Paul [Wed, 2 Jul 2008 22:39:48 +0000 (16:39 -0600)]
mesa: regenerated

16 years agomesa: added some missing equal() notEqual() intrinsics
Brian Paul [Wed, 2 Jul 2008 22:39:26 +0000 (16:39 -0600)]
mesa: added some missing equal() notEqual() intrinsics

16 years agomesa: regenerated files
Brian Paul [Wed, 2 Jul 2008 18:38:24 +0000 (12:38 -0600)]
mesa: regenerated files

16 years agomesa: fix all(bvec2) function typo, add missing bvec2/3/4() constuctors
Brian Paul [Wed, 2 Jul 2008 18:37:01 +0000 (12:37 -0600)]
mesa: fix all(bvec2) function typo, add missing bvec2/3/4() constuctors

16 years agomesa: fix issues around multisample enable
Roland Scheidegger [Wed, 2 Jul 2008 18:20:33 +0000 (20:20 +0200)]
mesa: fix issues around multisample enable

multisample enable is enabled by default, however gl mandates multisample
rendering rules only apply if there's also a multisampled buffer.

16 years agogenerate a link error if the vertex shader references too many textures
Brian Paul [Wed, 2 Jul 2008 15:16:10 +0000 (09:16 -0600)]
generate a link error if the vertex shader references too many textures

16 years agoset ctx->Const.MaxVertexTextureImageUnits = 0
Brian Paul [Wed, 2 Jul 2008 15:14:53 +0000 (09:14 -0600)]
set ctx->Const.MaxVertexTextureImageUnits = 0

This disallows vertex shader texture sampling.  See bugs 16157, 13838.

16 years agoVBO: Regenerate files based on recent changes to gl_API.xml
Ian Romanick [Wed, 2 Jul 2008 13:26:11 +0000 (06:26 -0700)]
VBO: Regenerate files based on recent changes to gl_API.xml

Since GL_ARB_vertex_buffer_object protocol isn't supported yet, these
changes are innocuous.

16 years agoBring over commit 8d4d0b47a07a298a20ffae9fefe96c8c7ca9dccc from xserver tree
Paulo Cesar Pereira de Andrade [Wed, 2 Jul 2008 13:22:47 +0000 (06:22 -0700)]
Bring over commit 8d4d0b47a07a298a20ffae9fefe96c8c7ca9dccc from xserver tree

16 years agoVBO: Add missing functions related to VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB
Ian Romanick [Wed, 2 Jul 2008 02:30:32 +0000 (19:30 -0700)]
VBO: Add missing functions related to VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB

16 years agoVBO: add GLX related annotations
Ian Romanick [Wed, 2 Jul 2008 01:20:21 +0000 (18:20 -0700)]
VBO: add GLX related annotations

16 years agomesa: fix a GLSL vector subscript/writemask bug
Brian Paul [Tue, 1 Jul 2008 23:59:07 +0000 (17:59 -0600)]
mesa: fix a GLSL vector subscript/writemask bug

This fixes a failure for cases like:
   vec4 v;
   v[1] *= 2.0;

The v[1] actually acts like a writemask, equivalent to v.y
The fix is a bit convoluted, but will do for now.

16 years agomesa: move some functions
Brian Paul [Tue, 1 Jul 2008 23:52:31 +0000 (17:52 -0600)]
mesa: move some functions

16 years agomesa: make _slang_swizzle_swizzle() non-private
Brian Paul [Tue, 1 Jul 2008 23:50:14 +0000 (17:50 -0600)]
mesa: make _slang_swizzle_swizzle() non-private

16 years agomesa: better function inlining in the presence of 'return' statements
Brian Paul [Tue, 1 Jul 2008 17:41:21 +0000 (11:41 -0600)]
mesa: better function inlining in the presence of 'return' statements

Before, the presence of a 'return' statement always prevented inlining
a function.  This was because we didn't want to accidentally return from
the _calling_ function.  We still need the semantic of 'return' when inlining
but we can't always use unconditional branches/jumps (GPUs don't always
support arbitrary branching).

Now, we allow inlining functions w/ return if the return is the last
statement in the function.  This fixes the common case of a function
that returns a value, such as:

vec4 square(const in vec4 x)
{
   return x * x;
}

which effectively compiles into:

vec4 square(const in vec4 x)
{
   __retVal = x * x;
   return;
}

The 'return' can be no-op'd now and we can inline the function.

16 years agomesa: add/fix some IrInfo entries for debugging purposes
Brian Paul [Tue, 1 Jul 2008 17:41:02 +0000 (11:41 -0600)]
mesa: add/fix some IrInfo entries for debugging purposes

16 years agolink to DRM 2.3.1
Brian Paul [Tue, 1 Jul 2008 15:02:10 +0000 (09:02 -0600)]
link to DRM 2.3.1

16 years agopress 'm' to toggle multisample enable/disable
Brian Paul [Tue, 1 Jul 2008 14:48:48 +0000 (08:48 -0600)]
press 'm' to toggle multisample enable/disable

16 years agoinit machine->Samplers (fixes vertex program texture fetches)
Brian Paul [Tue, 1 Jul 2008 14:48:22 +0000 (08:48 -0600)]
init machine->Samplers (fixes vertex program texture fetches)

16 years agodri: drop asserts to make build against stable libdrm
Dave Airlie [Tue, 1 Jul 2008 08:22:12 +0000 (18:22 +1000)]
dri: drop asserts to make build against stable libdrm

These asserts are of questionable use at the moment with things in flux.

16 years agodri: Take the base image size into account when computing
Xiang, Haihao [Tue, 1 Jul 2008 03:38:07 +0000 (11:38 +0800)]
dri: Take the base image size into account when computing
first level of the mipmap.  fix #16210

16 years agoautoconf: Improve the visibility of the swrast DRI driver
Dan Nicholson [Mon, 30 Jun 2008 17:28:02 +0000 (10:28 -0700)]
autoconf: Improve the visibility of the swrast DRI driver

Improve the --with-dri-drivers help text so that users are aware that
they should install the swrast DRI driver.

16 years agor3xx/r5xx: Enable ARB_point_parameters.
Corbin Simpson [Mon, 30 Jun 2008 18:12:51 +0000 (11:12 -0700)]
r3xx/r5xx: Enable ARB_point_parameters.
This isn't complete yet. It does cover the two most common usage cases,
though, and at least the third one (POINT_DISTANCE_ATTENUATION) is possible,
so I'll do that later.

16 years agor300: Fix dumb mistake in LOD bias translation
Nicolai Haehnle [Mon, 30 Jun 2008 06:37:13 +0000 (08:37 +0200)]
r300: Fix dumb mistake in LOD bias translation

16 years agor300: Cleanup LodBias support
Nicolai Haehnle [Sun, 29 Jun 2008 22:44:26 +0000 (00:44 +0200)]
r300: Cleanup LodBias support

. There is both a per-texture unit and a per-texture object (at least for
OpenGL 1.4); this should now be supported properly.
. The LOD bias calculation in r300_state has been simplified and corrected
  (need to multiply by 32 instead of 31, and ensure clamping)
. do not clamp LOD bias in TexEnv, as that behaviour conflicts with what
  the spec says
. set Const.MaxTextureLodBias properly
. remove the no_neg_lod_bias property; if somebody can explain what
  it's good for, we can add it back in, but according to Google, nobody
  seems to use it
. removed some dead code and unused variables

16 years agor300: Change LOD bias emission to more closely follow per-tex rules.
Corbin Simpson [Sun, 29 Jun 2008 17:30:47 +0000 (10:30 -0700)]
r300: Change LOD bias emission to more closely follow per-tex rules.
Okay, this time it's for real, and for good. This should be a perma-fix.