mesa.git
16 years agor5xx: Detangle FP fallback and translation switches.
Corbin Simpson [Sun, 15 Jun 2008 00:51:04 +0000 (17:51 -0700)]
r5xx: Detangle FP fallback and translation switches.
r5xx should fallback if it encounters a bad FP.
TODO: Re-enable the dumb shader so we don't have to completely fallback.

16 years agor300: Add radeonTransformALU and fix a bug in r300_fragprog DPH
Nicolai Haehnle [Sat, 14 Jun 2008 21:09:15 +0000 (23:09 +0200)]
r300: Add radeonTransformALU and fix a bug in r300_fragprog DPH

This new generic transform replaces "special" instructions by more generic
variants. Hopefully, we will be able to share this code between r300 and r500.

16 years agor300_fragprog: Use less complex instructions
Nicolai Haehnle [Sat, 14 Jun 2008 18:26:10 +0000 (20:26 +0200)]
r300_fragprog: Use less complex instructions

MOV, ADD and MUL do not fit the hardware as well as MAD, but they are less
complex and thus leave more room for future optimizations.

16 years agor5xx: More FP rewriting; fix texrect FP insts.
Corbin Simpson [Sat, 14 Jun 2008 15:56:03 +0000 (08:56 -0700)]
r5xx: More FP rewriting; fix texrect FP insts.

16 years agor5xx: New FP code, take two.
Corbin Simpson [Sat, 14 Jun 2008 14:21:40 +0000 (07:21 -0700)]
r5xx: New FP code, take two.
Add the code emission source file, and comment out unneeded tex de-swizzling.

16 years agor5xx: FP refactor, take one.
Corbin Simpson [Sat, 14 Jun 2008 14:03:08 +0000 (07:03 -0700)]
r5xx: FP refactor, take one.
Yes, I know it's massive. Imagine how I felt, auditing 3000 lines of code.

16 years agor3xx/r5xx: Don't force aniso.
Corbin Simpson [Sat, 14 Jun 2008 11:37:09 +0000 (04:37 -0700)]
r3xx/r5xx: Don't force aniso.
*Pulls paper bag down over head*

16 years agor300: Implement GL_ARB_shadow and GL_EXT_shadow_funcs
Nicolai Haehnle [Sat, 14 Jun 2008 02:07:51 +0000 (04:07 +0200)]
r300: Implement GL_ARB_shadow and GL_EXT_shadow_funcs

16 years agotexenvprogram: Mark textures using ARB_shadow as ShadowSamplers
Nicolai Haehnle [Sat, 14 Jun 2008 00:28:58 +0000 (02:28 +0200)]
texenvprogram: Mark textures using ARB_shadow as ShadowSamplers

Since ARB_fragment_program and friends are defined to ignore the setting of
the GL_TEXTURE_COMPARE_FUNC parameter, we have to explicitly enable the
shadow comparison by marking the texture unit in ShadowSamplers when
appropriate.

16 years agor300: Add radeonCompilerDump for debugging
Nicolai Haehnle [Sat, 14 Jun 2008 01:34:09 +0000 (03:34 +0200)]
r300: Add radeonCompilerDump for debugging

16 years agor300_fragprog: Refactor TEX transformation
Nicolai Haehnle [Fri, 13 Jun 2008 23:46:19 +0000 (01:46 +0200)]
r300_fragprog: Refactor TEX transformation

Streamlining source and destination registers, as well as texcoord scaling for
RECT textures is now done in a radeon_program based transformation.

The idea is that this will allow us to optimize away unnecessary indirections
more easily.

16 years agor300: Add radeon_program and trivial refactoring of r300_fragprog to use it
Nicolai Haehnle [Fri, 13 Jun 2008 21:46:04 +0000 (23:46 +0200)]
r300: Add radeon_program and trivial refactoring of r300_fragprog to use it

The idea/hope is that radeon_program will serve as an intermediate
representation for r3xx up to r6xx fragment and vertex programs.
Right now, it is nothing more than a simplistic wrapper around Mesa's
prog_instruction, together with the notion of clauses, taken from r6xx docs.

The clauses will eventually be used to represent the nodes that are used in
r300 family fragment programs.

16 years agor300: Do not include r300_fragprog.h from r300_context.h and other cleanups
Nicolai Haehnle [Fri, 13 Jun 2008 20:09:37 +0000 (22:09 +0200)]
r300: Do not include r300_fragprog.h from r300_context.h and other cleanups

16 years agor300_fragprog: Remove dead declarations, move NOP declarations into source
Nicolai Haehnle [Fri, 13 Jun 2008 20:03:26 +0000 (22:03 +0200)]
r300_fragprog: Remove dead declarations, move NOP declarations into source

16 years agor300_fragprog: Refactoring and cleanup
Nicolai Haehnle [Fri, 13 Jun 2008 19:43:09 +0000 (21:43 +0200)]
r300_fragprog: Refactoring and cleanup

Refactor so that r300_pfs_compile_state "owns"/holds a pointer to
r300_fragment_program instead of the other way round. This is more natural from
an object orientation point of view.

Move the compiled hardware state into r300_fragment_program_code, in
anticipation of on-the-fly program recompilation based on external OpenGL
state.

16 years agor300_fragprog: Remove dead code
Nicolai Haehnle [Fri, 13 Jun 2008 18:03:17 +0000 (20:03 +0200)]
r300_fragprog: Remove dead code

16 years agor300/r500: Separate fragprog compiler structures
Nicolai Haehnle [Fri, 13 Jun 2008 18:49:52 +0000 (20:49 +0200)]
r300/r500: Separate fragprog compiler structures

r500 code still used r300_pfs_compile_state, which contains some fields that
really only make sense on r3xx type hardware. In order to allow both fragprog
implementations to go forward without disturbing each other, I've pushed this
structure down into the respective r[3|5]00_fragprog.c

16 years agor300: Fix depth texture GL_LUMINANCE vs. GL_INTENSITY mixup
Nicolai Haehnle [Fri, 13 Jun 2008 16:41:16 +0000 (18:41 +0200)]
r300: Fix depth texture GL_LUMINANCE vs. GL_INTENSITY mixup

16 years agor300: Reenable t->filter_1 (though currently not used)
Nicolai Haehnle [Sat, 7 Jun 2008 12:17:56 +0000 (14:17 +0200)]
r300: Reenable t->filter_1 (though currently not used)

16 years agoglx: load swrast_dri.so
George Sapountzis [Fri, 13 Jun 2008 12:54:08 +0000 (15:54 +0300)]
glx: load swrast_dri.so

caveats:

- does not work with old (i.e. libGLcore) xserver:

- made unbindContext a noop

- extensions:

  GLX_SGI_make_current_read
  GLX_EXT_texture_from_pixmap
  GLX_MESA_copy_sub_buffer

16 years agodri/swrast: make unbind a noop
George Sapountzis [Fri, 13 Jun 2008 12:52:32 +0000 (15:52 +0300)]
dri/swrast: make unbind a noop

This is for loading swrast_dri.so from libGL.

MakeContextCurrent() seems to unbind the context right after binding it and
DRI drivers also have a noop DriverAPI.UnbindContext ...

16 years agodri/swrast: add OpenGL 2.1 functions
George Sapountzis [Fri, 13 Jun 2008 12:48:34 +0000 (15:48 +0300)]
dri/swrast: add OpenGL 2.1 functions

16 years agoglx: use ErrorMessageF
George Sapountzis [Fri, 13 Jun 2008 12:48:06 +0000 (15:48 +0300)]
glx: use ErrorMessageF

16 years agosilly bug: it's PROGRAM_VARYING
Zack Rusin [Thu, 12 Jun 2008 23:41:54 +0000 (19:41 -0400)]
silly bug: it's PROGRAM_VARYING

16 years agoglsl: make sure we replace all output reads with temporaries
Zack Rusin [Thu, 12 Jun 2008 22:53:52 +0000 (18:53 -0400)]
glsl: make sure we replace all output reads with temporaries

test in if.glsl

16 years agoglsl: allow uniforms
Zack Rusin [Thu, 12 Jun 2008 23:37:26 +0000 (19:37 -0400)]
glsl: allow uniforms

16 years agoglsl: fix array size initialiazers using const variables
Zack Rusin [Mon, 9 Jun 2008 03:05:15 +0000 (23:05 -0400)]
glsl: fix array size initialiazers using const variables

e.g.
const int kernelSize = 9;
uniform vec2 kernel[kernelSize];

16 years agoalmost forgot - RelAddr is a boolean so use it here
Zack Rusin [Thu, 12 Jun 2008 18:19:10 +0000 (14:19 -0400)]
almost forgot - RelAddr is a boolean so use it here

16 years agoshaders: fix allocation of arrays of parameters
Zack Rusin [Thu, 12 Jun 2008 04:03:35 +0000 (00:03 -0400)]
shaders: fix allocation of arrays of parameters

16 years agoglsl: implement variable array indexes
Zack Rusin [Tue, 10 Jun 2008 20:59:44 +0000 (16:59 -0400)]
glsl: implement variable array indexes

16 years agoUpdate .gitignore for progs/glsl
Dan Nicholson [Thu, 12 Jun 2008 13:37:45 +0000 (06:37 -0700)]
Update .gitignore for progs/glsl

16 years agosparc: add swrast to dri drivers
Dave Airlie [Thu, 12 Jun 2008 06:26:46 +0000 (16:26 +1000)]
sparc: add swrast to dri drivers

16 years agosparc: add DRI drivers for sparc patch from Fedora
Dave Airlie [Thu, 12 Jun 2008 02:06:50 +0000 (12:06 +1000)]
sparc: add DRI drivers for sparc patch from Fedora

16 years agoremove obsoleted doxygen \param comments
Brian Paul [Thu, 12 Jun 2008 01:33:30 +0000 (19:33 -0600)]
remove obsoleted doxygen \param comments

Someone changed the function parameters but didn't bother to update the
comments.

Also, whitespace changes, clean-ups.

16 years agocomments
Brian Paul [Thu, 12 Jun 2008 01:33:14 +0000 (19:33 -0600)]
comments

16 years agoremove unnecessary swrast, tnl includes
Brian Paul [Tue, 10 Jun 2008 18:08:30 +0000 (12:08 -0600)]
remove unnecessary swrast, tnl includes

16 years agoadd some missing rule dependencies
Brian Paul [Tue, 10 Jun 2008 16:09:03 +0000 (10:09 -0600)]
add some missing rule dependencies

16 years agocopy msaa visuals capability
Roland Scheidegger [Tue, 10 Jun 2008 13:43:33 +0000 (15:43 +0200)]
copy msaa visuals capability

16 years agoDistribute version.mk in case autoconf needs to be run again
Dan Nicholson [Tue, 10 Jun 2008 13:06:40 +0000 (06:06 -0700)]
Distribute version.mk in case autoconf needs to be run again

Users may need to rebuild the configure script, so we need to distribute
version.mk so autoconf can run successfully.

16 years agoi965: apply commit 6c1a98e97affb2163e776551eb3a9e669ff99bbf to glsl
Xiang, Haihao [Tue, 10 Jun 2008 08:31:36 +0000 (16:31 +0800)]
i965: apply commit 6c1a98e97affb2163e776551eb3a9e669ff99bbf to glsl

16 years agofix Xlib libGL.so build problem.
Brian Paul [Mon, 9 Jun 2008 22:06:44 +0000 (16:06 -0600)]
fix Xlib libGL.so build problem.

Also, build driverfuncs.c into libmesa.a since it's always needed.

16 years agos/SOLO/MESA/
Brian Paul [Mon, 9 Jun 2008 20:09:09 +0000 (14:09 -0600)]
s/SOLO/MESA/

16 years agoMakefile clean-ups
Brian Paul [Mon, 9 Jun 2008 19:50:44 +0000 (13:50 -0600)]
Makefile clean-ups

16 years agomore old stuff, rename SOLO->MESA, etc
Brian Paul [Mon, 9 Jun 2008 19:50:31 +0000 (13:50 -0600)]
more old stuff, rename SOLO->MESA, etc

16 years agoMakefile clean-ups
Brian Paul [Mon, 9 Jun 2008 19:50:11 +0000 (13:50 -0600)]
Makefile clean-ups

16 years agodocument makefile changes
Brian Paul [Fri, 6 Jun 2008 18:38:24 +0000 (12:38 -0600)]
document makefile changes

16 years agoCheck for NULL pointer
Alan Hourihane [Mon, 9 Jun 2008 15:24:15 +0000 (16:24 +0100)]
Check for NULL pointer

16 years agoglx: use goto's vs. nested if's ala xserver
George Sapountzis [Mon, 9 Jun 2008 14:47:49 +0000 (17:47 +0300)]
glx: use goto's vs. nested if's  ala xserver

compile tested only

16 years agoglx: add dri_common.c ala xserver
George Sapountzis [Mon, 9 Jun 2008 14:47:09 +0000 (17:47 +0300)]
glx: add dri_common.c ala xserver

also drop driFilterModes which is unused

in preparation of loading swrast_dri.so

16 years agodri/swrast: minor cosmetic
George Sapountzis [Mon, 9 Jun 2008 14:46:39 +0000 (17:46 +0300)]
dri/swrast: minor cosmetic

16 years agor300: Workaround hardware readcache problem
Nicolai Haehnle [Sun, 8 Jun 2008 20:36:20 +0000 (22:36 +0200)]
r300: Workaround hardware readcache problem

This workaround is similar to the one found in r200_span.c.
It seems like some part of the read hardware doesn't realize that
VRAM has changed. By reading from an arbitrary position, this is fixed.

The piglit test bugs/r300-readcache is a regression test for this bug.

16 years agoremove realglx.[ch] from build
Brian [Sun, 8 Jun 2008 17:25:30 +0000 (11:25 -0600)]
remove realglx.[ch] from build

16 years agoi965: fix OPCODE_TEX when additional ops are needed
Roland Scheidegger [Sun, 8 Jun 2008 12:04:39 +0000 (14:04 +0200)]
i965: fix OPCODE_TEX when additional ops are needed

16 years agor300: Allow driconf to set a default anisotropy.
Corbin Simpson [Sat, 7 Jun 2008 19:37:10 +0000 (12:37 -0700)]
r300: Allow driconf to set a default anisotropy.
If an app does not use GL_EXT_tex_filter_aniso, this lets driconf set it instead.

16 years agor300: Some cleanups in depth and stencil state handling
Nicolai Haehnle [Sat, 7 Jun 2008 19:07:28 +0000 (21:07 +0200)]
r300: Some cleanups in depth and stencil state handling

This also fixes a bug with Zfunc set to GL_NEVER in glean/paths.

16 years agor300: Apply writemask when clearing stencil buffer
Nicolai Haehnle [Sat, 7 Jun 2008 18:33:28 +0000 (20:33 +0200)]
r300: Apply writemask when clearing stencil buffer

This fixes the glean/maskedClear test.

16 years agor300: Fix stencil buffer clear
Nicolai Haehnle [Sat, 7 Jun 2008 18:25:47 +0000 (20:25 +0200)]
r300: Fix stencil buffer clear

The glean/readPixSanity test passes now.

16 years agor300: Further anisotropic filtering fixes
Nicolai Haehnle [Sat, 7 Jun 2008 16:54:35 +0000 (18:54 +0200)]
r300: Further anisotropic filtering fixes

Thanks to Corbin for the initial cut today. Fixed some minor stuff (in
particular, make sure we still use a MIP_LINEAR filtering mode; anisotropy
without MIP_LINEAR filtering is not the truly pleasing anisotropy).

16 years agor300: Update LOD_BIAS register constants
Nicolai Haehnle [Sat, 7 Jun 2008 12:17:36 +0000 (14:17 +0200)]
r300: Update LOD_BIAS register constants

16 years agor5xx: Unbreak anisotropic filtering?
Corbin Simpson [Sat, 7 Jun 2008 08:37:35 +0000 (01:37 -0700)]
r5xx: Unbreak anisotropic filtering?
Not quite finished, maybe? Not sure.

16 years agor5xx: Fix speedy LIT once and for all.
Corbin Simpson [Sat, 7 Jun 2008 04:53:05 +0000 (21:53 -0700)]
r5xx: Fix speedy LIT once and for all.
To do: Add a slightly more accurate LIT. Will do later.

16 years agoFix CRLF line endings.
Jose Fonseca [Sat, 7 Jun 2008 03:34:45 +0000 (12:34 +0900)]
Fix CRLF line endings.

16 years agoFix CRLF line endings.
Jose Fonseca [Sat, 7 Jun 2008 03:33:47 +0000 (12:33 +0900)]
Fix CRLF line endings.

16 years agor300: Improve texture layout calculations
Nicolai Haehnle [Fri, 6 Jun 2008 21:47:46 +0000 (23:47 +0200)]
r300: Improve texture layout calculations

The texture layout calculations for mipmapped cubemaps used to be completely
wrong, since the GPU expects images to be grouped by miplevel instead of by
face number.

This has been fixed now, though the memory layout is still slightly incorrect
for the smaller miplevels. Unfortunately, the docs are lacking in that area.

16 years agor300: Cleanup TX_MIN_FILTER defines
Nicolai Haehnle [Fri, 6 Jun 2008 19:28:08 +0000 (21:28 +0200)]
r300: Cleanup TX_MIN_FILTER defines

This commit should not affect the functionality at all, just cleanup
some of the original texture filter guesswork using information from
the register documentation.

16 years agor300: Remove unused variable r300_tex_obj::dirty_state and related defines
Nicolai Haehnle [Fri, 6 Jun 2008 19:13:12 +0000 (21:13 +0200)]
r300: Remove unused variable r300_tex_obj::dirty_state and related defines

This variable was only ever written to, but nobody used its value.

16 years agos/subdirs/asm_subdirs/
Brian Paul [Fri, 6 Jun 2008 18:27:55 +0000 (12:27 -0600)]
s/subdirs/asm_subdirs/

16 years agomove the install rules
Brian Paul [Fri, 6 Jun 2008 18:27:14 +0000 (12:27 -0600)]
move the install rules

16 years agoremove stray semicolon
Brian Paul [Fri, 6 Jun 2008 18:25:24 +0000 (12:25 -0600)]
remove stray semicolon

16 years agomove a beos-ism down into drivers/beos/Makefile
Brian Paul [Fri, 6 Jun 2008 18:24:44 +0000 (12:24 -0600)]
move a beos-ism down into drivers/beos/Makefile

16 years agoRemove the old, complicated default build rule; use the new driver_subdirs rule
Brian Paul [Fri, 6 Jun 2008 18:18:40 +0000 (12:18 -0600)]
Remove the old, complicated default build rule; use the new driver_subdirs rule

Also, all the old driver-specific rules are now gone.

16 years agoremove more old stuff, insert new driver_subdir build rules (but not enabled yet)
Brian Paul [Fri, 6 Jun 2008 18:12:59 +0000 (12:12 -0600)]
remove more old stuff, insert new driver_subdir build rules (but not enabled yet)

16 years agonew drivers/Makefile with simple default/clean/install rules
Brian Paul [Fri, 6 Jun 2008 18:09:55 +0000 (12:09 -0600)]
new drivers/Makefile with simple default/clean/install rules

16 years agomove directfb-libgl into drivers/directfb/Makefile
Brian Paul [Fri, 6 Jun 2008 18:09:01 +0000 (12:09 -0600)]
move directfb-libgl into drivers/directfb/Makefile

16 years agoMove fbdev driver construction into src/mesa/drivers/fbdev/Makefile
Brian Paul [Thu, 5 Jun 2008 22:44:11 +0000 (16:44 -0600)]
Move fbdev driver construction into src/mesa/drivers/fbdev/Makefile

16 years agoreorder some lines, more make clean cmds
Brian Paul [Thu, 5 Jun 2008 22:28:00 +0000 (16:28 -0600)]
reorder some lines, more make clean cmds

16 years agoremove X11, Glide, OSMesa sources
Brian Paul [Thu, 5 Jun 2008 22:27:43 +0000 (16:27 -0600)]
remove X11, Glide, OSMesa sources

16 years agoadded dependencies
Brian Paul [Thu, 5 Jun 2008 22:26:15 +0000 (16:26 -0600)]
added dependencies

16 years agoMove building of stand-alone Mesa into drivers/x11/Makefile
Brian Paul [Thu, 5 Jun 2008 22:08:42 +0000 (16:08 -0600)]
Move building of stand-alone Mesa into drivers/x11/Makefile

Also, some re-org, renaming, and general clean-up.
We're just a few steps away from removing the all the special case rules
for building drivers.

16 years agonew Makefile for building "stand-alone", Xlib-based libGL
Brian Paul [Thu, 5 Jun 2008 22:06:17 +0000 (16:06 -0600)]
new Makefile for building "stand-alone", Xlib-based libGL

16 years agoprefix some includes with mesa/ or glapi/
Brian Paul [Thu, 5 Jun 2008 22:05:02 +0000 (16:05 -0600)]
prefix some includes with mesa/ or glapi/

16 years agominor changes
Brian Paul [Thu, 5 Jun 2008 21:37:17 +0000 (15:37 -0600)]
minor changes

16 years agoMove construction of libOSMesa.so into src/mesa/drivers/osmesa/Makefile
Brian Paul [Thu, 5 Jun 2008 21:36:07 +0000 (15:36 -0600)]
Move construction of libOSMesa.so into src/mesa/drivers/osmesa/Makefile

This removes some cruft from src/mesa/Makefile.
Something similar could be done for stand-alone / Xlib-Mesa libGL...

16 years agoinsert mesa/ before include files
Brian Paul [Thu, 5 Jun 2008 21:23:46 +0000 (15:23 -0600)]
insert mesa/ before include files

16 years agoSilence warning
Alan Hourihane [Thu, 5 Jun 2008 10:47:20 +0000 (11:47 +0100)]
Silence warning

16 years agofix event handling issues (such as when resizing when not animating)
Brian Paul [Wed, 4 Jun 2008 22:11:24 +0000 (16:11 -0600)]
fix event handling issues (such as when resizing when not animating)

16 years agopress 'a' to toggle animation
Brian Paul [Wed, 4 Jun 2008 22:04:04 +0000 (16:04 -0600)]
press 'a' to toggle animation

16 years agocode refactoring (draw_frame(0, handle_event())
Brian Paul [Wed, 4 Jun 2008 22:01:47 +0000 (16:01 -0600)]
code refactoring (draw_frame(0, handle_event())

16 years agoremove references to incorrect -winwidth/-winheight, replace with -geometry
Brian Paul [Wed, 4 Jun 2008 21:56:30 +0000 (15:56 -0600)]
remove references to incorrect -winwidth/-winheight, replace with -geometry

16 years agoSet the attribute as used.
Brian Paul [Wed, 4 Jun 2008 20:41:33 +0000 (14:41 -0600)]
Set the attribute as used.

cherry-picked from gallium-0.1

16 years agoautoconf: Collect arch/platform settings in one location
Dan Nicholson [Wed, 4 Jun 2008 20:00:35 +0000 (13:00 -0700)]
autoconf: Collect arch/platform settings in one location

The architecture- and platorm-specific settings were scattered
throughout the configure script. This moves them near the beginning
before any of the driver-specific settings.

16 years agoremove old/unused foomesa.h example header
Brian Paul [Wed, 4 Jun 2008 15:33:02 +0000 (09:33 -0600)]
remove old/unused foomesa.h example header

16 years agocall glutDestroyWindow() before exit
Brian Paul [Wed, 4 Jun 2008 15:30:04 +0000 (09:30 -0600)]
call glutDestroyWindow() before exit

16 years agoi915: Fix GL_DEPTH_TEXTURE_MODE issue. (bug #16221)
Xiang, Haihao [Wed, 4 Jun 2008 07:44:38 +0000 (15:44 +0800)]
i915: Fix GL_DEPTH_TEXTURE_MODE issue. (bug #16221)

16 years agomesa/drm/ttm: allow build against non-TTM aware libdrm
Dave Airlie [Wed, 28 May 2008 05:55:44 +0000 (15:55 +1000)]
mesa/drm/ttm: allow build against non-TTM aware libdrm

I'll release a libdrm 2.3.1 without TTM apis included from a special
drm branch that should allow mesa 7.1 to build against it.

I've had to turn off DRI2 stuff.

16 years agobug #16503: use INSTALL macro instead of hard-coding to bin/minstall
Ian Romanick [Mon, 2 Jun 2008 18:19:35 +0000 (11:19 -0700)]
bug #16503: use INSTALL macro instead of hard-coding to bin/minstall

This is only part of the fix.  Someone with more autoconf-fu will have
to fix the rest

16 years ago[t_vp_build] Fix refcounting-related memory leak
Nicolai Haehnle [Sat, 31 May 2008 22:10:45 +0000 (00:10 +0200)]
[t_vp_build] Fix refcounting-related memory leak

This memory leak is identical to the earlier one in texenvprogram.
Fixed by not creating an additional reference to new programs in cache_item.

On top of that, remove some duplicated state setting.

16 years ago[texenvprogram] Fix refcounting-related memory leak.
Nicolai Haehnle [Sat, 31 May 2008 22:01:46 +0000 (00:01 +0200)]
[texenvprogram] Fix refcounting-related memory leak.

All newly created programs have RefCount == 1, but the fragment program cache
added an additional reference in cache_item, with the result being that none
of the programs were ever freed.

Solve the problem by not creating the additional reference in cache_item.

16 years agor500: add missing brackets around depth testing
Dave Airlie [Sun, 1 Jun 2008 21:18:21 +0000 (07:18 +1000)]
r500: add missing brackets around depth testing

16 years agor5xx: Enable depth write emission.
Corbin Simpson [Sun, 1 Jun 2008 18:45:30 +0000 (11:45 -0700)]
r5xx: Enable depth write emission.
Thanks to nh for the r3xx version.