mesa.git
17 years agoAdd _swrast_span_default_secondary_color() for use with glBitmap, glDrawPixels, etc.
Brian [Mon, 26 Mar 2007 17:30:05 +0000 (11:30 -0600)]
Add _swrast_span_default_secondary_color() for use with glBitmap, glDrawPixels, etc.

Secondary color wasn't getting added to post-texture color when drawing
bitmaps, images.  See bug 10409.

17 years agoremove incorrect assertions
Brian [Mon, 26 Mar 2007 16:39:56 +0000 (10:39 -0600)]
remove incorrect assertions

17 years agominor status updates
Brian [Mon, 26 Mar 2007 16:23:50 +0000 (10:23 -0600)]
minor status updates

17 years agodisable printing shader program debug info
Brian [Mon, 26 Mar 2007 16:15:02 +0000 (10:15 -0600)]
disable printing shader program debug info

17 years agomerge of glsl-compiler-1 branch
Brian [Mon, 26 Mar 2007 16:13:02 +0000 (10:13 -0600)]
merge of glsl-compiler-1 branch

17 years agoi915tex: Make sure renderbuffers don't get deleted when flipping them.
Michel Dänzer [Mon, 26 Mar 2007 15:38:58 +0000 (17:38 +0200)]
i915tex: Make sure renderbuffers don't get deleted when flipping them.

Since the recent renderbuffer refcounting fixes it's no longer sufficient to
just remove the old renderbuffer from the framebuffer and then add the new one
because the former may decrease the reference count to 0 and delete the old
renderbuffer.

17 years agodisable free() until other issues can be fixed...
Brian [Mon, 26 Mar 2007 15:24:30 +0000 (09:24 -0600)]
disable free() until other issues can be fixed...

17 years agofix mem leak, add comments
Brian [Mon, 26 Mar 2007 15:23:44 +0000 (09:23 -0600)]
fix mem leak, add comments

17 years agonouveau: match drm version bump
Ben Skeggs [Mon, 26 Mar 2007 11:31:43 +0000 (21:31 +1000)]
nouveau: match drm version bump

17 years agoFix some renderbuffer reference counting issues. Also fixes a mem leak.
Brian [Sun, 25 Mar 2007 16:39:36 +0000 (10:39 -0600)]
Fix some renderbuffer reference counting issues.  Also fixes a mem leak.

17 years agodestroy window on exit
Brian [Sun, 25 Mar 2007 16:25:29 +0000 (10:25 -0600)]
destroy window on exit

17 years agoi965: The given urb layout(maximal size of urb entries and the
Xiang, Haihao [Sun, 25 Mar 2007 13:40:58 +0000 (21:40 +0800)]
i965: The given urb layout(maximal size of urb entries and the
values for nr of entries) should meet the requirement.

17 years agoColor3iv: set the alpha value to 1.0
Xiang, Haihao [Sun, 25 Mar 2007 13:31:36 +0000 (21:31 +0800)]
Color3iv: set the alpha value to 1.0

17 years agor300: Whitespace cleanup in r300_texmem.c
Nicolai Haehnle [Sun, 25 Mar 2007 12:34:13 +0000 (14:34 +0200)]
r300: Whitespace cleanup in r300_texmem.c

17 years agor300: Whitespace cleanup in r300_texstate.c
Nicolai Haehnle [Sun, 25 Mar 2007 12:17:09 +0000 (14:17 +0200)]
r300: Whitespace cleanup in r300_texstate.c

17 years agor300: Fix regression: unnecessary node indirection
Nicolai Haehnle [Sun, 25 Mar 2007 11:02:26 +0000 (13:02 +0200)]
r300: Fix regression: unnecessary node indirection

The texture_rectangle fix introduced a bug where every texture instruction
caused a new indirection.

17 years agofix mem leak
Brian [Sat, 24 Mar 2007 22:44:20 +0000 (16:44 -0600)]
fix mem leak

17 years agodisable free(var->aux) -- can lead to segfault
Brian [Sat, 24 Mar 2007 22:43:44 +0000 (16:43 -0600)]
disable free(var->aux) -- can lead to segfault

17 years agofix mem leak
Brian [Sat, 24 Mar 2007 22:26:51 +0000 (16:26 -0600)]
fix mem leak

17 years agofix some mem leaks
Brian [Sat, 24 Mar 2007 22:22:35 +0000 (16:22 -0600)]
fix some mem leaks

17 years agoFree shader-related context state: _mesa_free_shader_state()
Brian [Sat, 24 Mar 2007 22:20:02 +0000 (16:20 -0600)]
Free shader-related context state: _mesa_free_shader_state()

17 years agofree prog->Attributes in _mesa_delete_program()
Brian [Sat, 24 Mar 2007 22:18:13 +0000 (16:18 -0600)]
free prog->Attributes in _mesa_delete_program()

17 years agofix mistake in _slang_free_ir()
Brian [Sat, 24 Mar 2007 21:29:10 +0000 (15:29 -0600)]
fix mistake in _slang_free_ir()

17 years agonouveau: implement nv20Clear and nv20Scissor
Dave Airlie [Sat, 24 Mar 2007 21:09:02 +0000 (07:09 +1000)]
nouveau: implement nv20Clear and nv20Scissor

Still crashes out on scissor regs

17 years agor300: Fix texture coordinate calculation for rectangle textures
Nicolai Haehnle [Sat, 24 Mar 2007 18:08:26 +0000 (19:08 +0100)]
r300: Fix texture coordinate calculation for rectangle textures

R300 hardware takes texcoords in the range 0..1 even for rectangle
textures. Previously, the necessary texcoord conversion was applied
to the texture coordinate during vertex processing in a render stage.

This is obviously wrong when fragment programs are used, which can
calculate arbitrary coordinates for TEX instructions. Therefore,
we now inject an appropriate MUL instruction before a TEX that
reference a rectangle texture.

17 years agor300: No assertion when accessing incomplete texture images.
Nicolai Haehnle [Sat, 24 Mar 2007 15:42:08 +0000 (16:42 +0100)]
r300: No assertion when accessing incomplete texture images.

There used to be an assertion when a fragment program accesses an incomplete
texture image. Work around this assertion.
Note: I am unsure whether this workaround produces the desired result
(0,0,0,1) on all hardware.

17 years agoProperly free the slang_ir_node->Store data (use ref counting).
Brian [Sat, 24 Mar 2007 16:18:14 +0000 (10:18 -0600)]
Properly free the slang_ir_node->Store data (use ref counting).

17 years agoWhen computing render_inputs_bitset, omit primary color if we have a fragment program...
Brian [Sat, 24 Mar 2007 16:16:49 +0000 (10:16 -0600)]
When computing render_inputs_bitset, omit primary color if we have a fragment program and it doesn't need FRAG_ATTRIB_COL0.  Silences valgrind warnings.

17 years agomove some code into new slang_ir.c file
Brian [Sat, 24 Mar 2007 15:40:20 +0000 (09:40 -0600)]
move some code into new slang_ir.c file

17 years agoIR utility functions
Brian [Sat, 24 Mar 2007 15:39:24 +0000 (09:39 -0600)]
IR utility functions

17 years agor300: Fix: KIL instruction don't require textures
Nicolai Haehnle [Sat, 24 Mar 2007 12:01:57 +0000 (13:01 +0100)]
r300: Fix: KIL instruction don't require textures

When no textures were enabled, a KIL instruction triggered an assertion
in r300_setup_rs_unit.

17 years agoswrast: Fix crash when sampling from a non-existing texture object
Nicolai Haehnle [Sat, 24 Mar 2007 13:41:59 +0000 (14:41 +0100)]
swrast: Fix crash when sampling from a non-existing texture object

17 years agonouveau: some swtcl fixes
Ben Skeggs [Sat, 24 Mar 2007 11:22:27 +0000 (22:22 +1100)]
nouveau: some swtcl fixes

17 years agoImplement alpha buffer copy for SwapBuffers().
Brian [Sat, 24 Mar 2007 00:01:31 +0000 (18:01 -0600)]
Implement alpha buffer copy for SwapBuffers().

Nicolai writes:
When the pixmap pixel format has no alpha channel, the x11 driver
(software rendering) adds a wrapped alpha channel on request.

During SwapBuffers, this alpha channel is not copied from back to
front, which means that the front buffer doesn't really contain the
contents that the back buffer previously contained.

A subsequent glReadPixels from the front buffer will return an
incorrect result. The following patch attempts to fix this.

17 years agodocument internal compiler options
Brian [Fri, 23 Mar 2007 23:49:19 +0000 (17:49 -0600)]
document internal compiler options

17 years agoFix issues related to the 'continue' statement.
Brian [Fri, 23 Mar 2007 23:48:42 +0000 (17:48 -0600)]
Fix issues related to the 'continue' statement.

IR_LOOP now has two children: the body code, and the tail code.
Tail code is the "i++" part of a for-loop, or the expression at the end
of a "do {} while(expr);" loop.
"continue" translates into: "execute tail code; CONT;"
Also, the test for infinite do/while loops was incorrect.

17 years agoconsolidate some code
Brian [Fri, 23 Mar 2007 23:45:53 +0000 (17:45 -0600)]
consolidate some code

17 years agoAdd the ability to generate programs that doesn't use condition codes.
Brian [Fri, 23 Mar 2007 20:47:46 +0000 (14:47 -0600)]
Add the ability to generate programs that doesn't use condition codes.

ctx->Shader.EmitCondCodes determines if we use condition codes.
If not, IF statement uses first operand's X component as the condition.
Added OPCODE_BRK0, OPCODE_BRK1, OPCODE_CONT0, OPCODE_CONT1 to handle
the common cases of conditional break/continue.

17 years agominor tweaks
Brian [Fri, 23 Mar 2007 20:44:34 +0000 (14:44 -0600)]
minor tweaks

17 years agoupdated comment
Brian [Fri, 23 Mar 2007 16:46:08 +0000 (10:46 -0600)]
updated comment

17 years agor300: Whitespace cleanup (remove trailing spaces)
Nicolai Haehnle [Fri, 23 Mar 2007 16:07:58 +0000 (17:07 +0100)]
r300: Whitespace cleanup (remove trailing spaces)

17 years agoupdated comment
Brian [Thu, 22 Mar 2007 22:07:43 +0000 (16:07 -0600)]
updated comment

17 years agoOverhaul emit_compare() function.
Brian [Thu, 22 Mar 2007 22:07:14 +0000 (16:07 -0600)]
Overhaul emit_compare() function.

Previously, comparing vec2, vec3, vec4 was broken.
Added IR_EQUAL, IR_NOTEQUAL nodes/operators to compute boolean
equality/inequality vs. IR_SEQUAL/IR_SNEQUAL which work component-wise.
Use IR_EQUAL/IR_NOTEQUAL for the == and != operators.
To compute vec4 equality, use SNE, DP4, SEQ instruction sequence.

17 years agoFirst pass at implementing structure compares.
Brian [Thu, 22 Mar 2007 15:15:39 +0000 (09:15 -0600)]
First pass at implementing structure compares.

Need to improve this.  There may be holes in a structure so we can't
just blindly compare the full 4-float registers.

17 years agouse _mesa_copy_instructions()
Brian [Thu, 22 Mar 2007 15:11:26 +0000 (09:11 -0600)]
use _mesa_copy_instructions()

17 years agoIn _mesa_add_unnamed_constant() and _mesa_lookup_parameter_constant() allow swizzleOu...
Brian [Thu, 22 Mar 2007 15:07:27 +0000 (09:07 -0600)]
In _mesa_add_unnamed_constant() and _mesa_lookup_parameter_constant() allow swizzleOut==NULL.

There are times when we don't want to allow swizzling when searching for or
adding vector constants.  Passing NULL for swizzleOut disables swizzling.
This fixes a constant/swizzle bug in link_uniform_vars().

17 years agoprint conditional writemask, if enabled
Brian [Thu, 22 Mar 2007 15:04:18 +0000 (09:04 -0600)]
print conditional writemask, if enabled

17 years agouse _mesa_alloc_instructions()
Brian [Thu, 22 Mar 2007 14:51:34 +0000 (08:51 -0600)]
use _mesa_alloc_instructions()

17 years agouse _mesa_copy_instructions()
Brian [Thu, 22 Mar 2007 14:50:20 +0000 (08:50 -0600)]
use _mesa_copy_instructions()

17 years agoEnsure we have a valid ReadBuffer for CopyTexSubImage, and
Alan Hourihane [Thu, 22 Mar 2007 14:26:49 +0000 (14:26 +0000)]
Ensure we have a valid ReadBuffer for CopyTexSubImage, and

if not bail accordingly.

Previously we'd only do this test on compressed textures.

17 years agofix for bug#10339
Xiang, Haihao [Thu, 22 Mar 2007 03:01:51 +0000 (11:01 +0800)]
fix for bug#10339

StateFlags has been updated in _mesa_add_state_reference

17 years agoadded SWIZZLE_XYZW
Brian [Wed, 21 Mar 2007 21:40:54 +0000 (15:40 -0600)]
added SWIZZLE_XYZW

17 years agoSupport for user-defined structures.
Brian [Wed, 21 Mar 2007 21:40:39 +0000 (15:40 -0600)]
Support for user-defined structures.

struct == and != operators not finished yet.  Struct assignment works though.

17 years agodisable apparently unused code
Brian [Wed, 21 Mar 2007 21:38:46 +0000 (15:38 -0600)]
disable apparently unused code

17 years agoindent
Brian [Wed, 21 Mar 2007 20:45:34 +0000 (14:45 -0600)]
indent

17 years agomerge from master
Brian [Wed, 21 Mar 2007 17:57:30 +0000 (11:57 -0600)]
merge from master

17 years agodisable assertion
Brian [Wed, 21 Mar 2007 17:41:41 +0000 (11:41 -0600)]
disable assertion

17 years agodocument 1D convolution fix
Brian [Wed, 21 Mar 2007 15:45:58 +0000 (09:45 -0600)]
document 1D convolution fix

17 years ago1D convolution (and post-conv scale/bias) were inadvertantly applied to 2D image...
Brian [Wed, 21 Mar 2007 15:44:03 +0000 (09:44 -0600)]
1D convolution (and post-conv scale/bias) were inadvertantly applied to 2D image transfers.

17 years agofix copy and paste bug from last commit in fog generation code for GL_LINEAR fog
Roland Scheidegger [Wed, 21 Mar 2007 12:19:02 +0000 (13:19 +0100)]
fix copy and paste bug from last commit in fog generation code for GL_LINEAR fog

17 years agonouveau: update for drm interface changes (0.0.5)
Ben Skeggs [Wed, 21 Mar 2007 06:54:57 +0000 (17:54 +1100)]
nouveau: update for drm interface changes (0.0.5)

17 years agonouveau: SwapBuffers() needs to perform a glFlush()
Ben Skeggs [Wed, 21 Mar 2007 04:05:07 +0000 (15:05 +1100)]
nouveau: SwapBuffers() needs to perform a glFlush()

17 years agomesa: revert f9f79c8d770e696249bd98c68b563f887562c974
Xiang, Haihao [Wed, 21 Mar 2007 02:50:19 +0000 (10:50 +0800)]
mesa: revert f9f79c8d770e696249bd98c68b563f887562c974
to fix #10232

Table6.1(in gl2.1) has been applied for glGetTexImage
before calling into _mesa_pack_rgba_span_float.

17 years agor300: Remove the program-global const_sin index
Nicolai Haehnle [Tue, 20 Mar 2007 23:56:38 +0000 (00:56 +0100)]
r300: Remove the program-global const_sin index

The index is no longer necessary to share constants between multiple
SIN/COS/SCS instructions inside a single fragment program, and storing
a tiny implementation detail like this in the fragment_program structure
itself was just nasty.

17 years agor300: Whitespace cleanup (remove trailing spaces)
Nicolai Haehnle [Mon, 19 Mar 2007 22:30:26 +0000 (23:30 +0100)]
r300: Whitespace cleanup (remove trailing spaces)

17 years agofix for bug#10347
Xiang, Haihao [Tue, 20 Mar 2007 14:12:03 +0000 (22:12 +0800)]
fix for bug#10347

not sure which brw surface for DXT3 & DXT5, so restore
the previous choice.(changed in commit
84081774e62a8af18e6bf894ea69f63b97dcfe96)

17 years agouse passed target parameter
Alan Hourihane [Tue, 20 Mar 2007 13:15:58 +0000 (13:15 +0000)]
use passed target parameter

17 years agonouveau: fix typo
Ben Skeggs [Tue, 20 Mar 2007 04:59:55 +0000 (15:59 +1100)]
nouveau: fix typo

17 years agonouveau: fail translate if we use too many params somehow
Ben Skeggs [Tue, 20 Mar 2007 04:52:57 +0000 (15:52 +1100)]
nouveau: fail translate if we use too many params somehow

17 years agonouveau: NVSDBG macro
Ben Skeggs [Tue, 20 Mar 2007 04:05:35 +0000 (15:05 +1100)]
nouveau: NVSDBG macro

17 years agor300: Cleanup fragment program constant allocation, share constants
Nicolai Haehnle [Mon, 19 Mar 2007 22:32:36 +0000 (23:32 +0100)]
r300: Cleanup fragment program constant allocation, share constants

The constant/parameter allocation was significantly simplified, removing
one unnecessary copy operation of parameters. The dirty state tracking is
unchanged and far from optimal, since all state is always re-fetched.

Constants and parameters are now emitted only once, which significantly
reduces the resource pressure on larger programs.

17 years agor300: Fix special case (tmp.x <= 0) in fragment program LIT instruction
Nicolai Haehnle [Mon, 19 Mar 2007 21:26:08 +0000 (22:26 +0100)]
r300: Fix special case (tmp.x <= 0) in fragment program LIT instruction

Also, fix a typo in a related comment.

17 years agor300: Clear fragment program instruction slots on first use
Nicolai Haehnle [Mon, 19 Mar 2007 21:17:16 +0000 (22:17 +0100)]
r300: Clear fragment program instruction slots on first use

Make sure that instruction slots are fully initialized with NOPs during
find_and_prepare_slot(). This fixes a bug when a fragment program was
translated more than once (e.g. due to a second call to glProgramStringARB).

This partially fixes glean/fragProg1.

17 years agoProperly compute render_inputs_bitset when using a vertex program/shader.
Brian [Mon, 19 Mar 2007 20:44:15 +0000 (14:44 -0600)]
Properly compute render_inputs_bitset when using a vertex program/shader.

This fixes a performance regression introduced early in glsl-compiler-1 work.

17 years agor300: Dump fragment program after translation if RADEON_DEBUG=pixel is set
Nicolai Haehnle [Mon, 19 Mar 2007 19:01:20 +0000 (20:01 +0100)]
r300: Dump fragment program after translation if RADEON_DEBUG=pixel is set

17 years agor300: Whitespace cleanup (remove trailing spaces)
Nicolai Haehnle [Mon, 19 Mar 2007 18:46:25 +0000 (19:46 +0100)]
r300: Whitespace cleanup (remove trailing spaces)

17 years agor300: Fix WRITEMASK handling when writing to result.depth
Nicolai Haehnle [Mon, 19 Mar 2007 18:45:45 +0000 (19:45 +0100)]
r300: Fix WRITEMASK handling when writing to result.depth

This is a necessary change to emit the right instructions when writing
to result.depth.

However, even with this test, Z-write doesn't work properly, and I don't
fully understand why. In addition to this, we'll at least have to disable
early-Z, but even that doesn't seem to be enough.

17 years agor300: Streamlined fragment program LIT implementation
Nicolai Haehnle [Sun, 18 Mar 2007 17:32:32 +0000 (18:32 +0100)]
r300: Streamlined fragment program LIT implementation

Fix a bug in the LIT implementation (clamp exponent to 128, not 0.5)
and change the implementation around. In theory, the new implementation
needs as little as 5 instruction slots. Unfortunately, the dependency
analysis in find_and_replace_slot is not strong enough to look at
individual components of a register yet.

17 years agor300: Fix fragment program reordering
Nicolai Haehnle [Sun, 18 Mar 2007 12:29:18 +0000 (13:29 +0100)]
r300: Fix fragment program reordering

Do not move an instruction that writes to a temp forward past an instruction
that reads the same temporary.

17 years agor300: Fragment program dumps format tex instructions
Nicolai Haehnle [Sun, 18 Mar 2007 12:09:21 +0000 (13:09 +0100)]
r300: Fragment program dumps format tex instructions

17 years agor300: Fix hw fragment program dump
Nicolai Haehnle [Sun, 18 Mar 2007 11:46:53 +0000 (12:46 +0100)]
r300: Fix hw fragment program dump

Dumps of fragment programs were incorrect when the program consisted of multiple
nodes.

Also, improved the formatting a bit.

17 years agor300: Fix fragment program instruction pairing and register allocation
Nicolai Haehnle [Sun, 18 Mar 2007 01:15:56 +0000 (02:15 +0100)]
r300: Fix fragment program instruction pairing and register allocation

There were a number of bugs related to the pairing of vector and scalar
operations where swizzles ended up using the wrong source register,
or an instruction was moved forward and ended up overwriting an aliased
register.

The new algorithm for register allocation is quite conservative and may
run out of registers before necessary. On the plus side, It Just Works.

Pairing is done whenever possible, and in more cases than before, so
in practice this change should be a net win.

17 years agoi915tex: The intended triple buffering fix.
Michel Dänzer [Mon, 19 Mar 2007 17:34:27 +0000 (18:34 +0100)]
i915tex: The intended triple buffering fix.

Making modifications while the editor spawned by git-commit was suspended
didn't have the intended effect.

17 years agoi915tex: Fix triple buffering after recent Mesa core changes.
Michel Dänzer [Mon, 19 Mar 2007 16:23:44 +0000 (17:23 +0100)]
i915tex: Fix triple buffering after recent Mesa core changes.

Remove superfluous _mesa_resize_framebuffer call which is now harmful because
it causes the third renderbuffer to have width/height 0, so Mesa refuses to
render to it.

In the long term, it would be nice to remove the hack in
intel_alloc_window_storage in favour of a proper Mesa interface for flipping
between more than two colour buffers.

17 years agofix off-by-one in load_state_immediate
Keith Whitwell [Sun, 18 Mar 2007 20:13:06 +0000 (20:13 +0000)]
fix off-by-one in load_state_immediate

17 years agofix typo in subrect_disable packet
Keith Whitwell [Sun, 18 Mar 2007 20:12:53 +0000 (20:12 +0000)]
fix typo in subrect_disable packet

17 years agofix typo in subrect_disable packet
Keith Whitwell [Sun, 18 Mar 2007 20:12:38 +0000 (20:12 +0000)]
fix typo in subrect_disable packet

17 years agoscreen offset changes, bug 9965
Miguel Marte [Sun, 18 Mar 2007 17:08:29 +0000 (11:08 -0600)]
screen offset changes, bug 9965

17 years agofix assertion in read_depth_pixels()
Nicolai Haehnle [Sun, 18 Mar 2007 17:02:35 +0000 (11:02 -0600)]
fix assertion in read_depth_pixels()

17 years agor300: Removed the deprecated $XFree86$ CVS keywords.
Oliver McFadden [Sun, 18 Mar 2007 16:57:45 +0000 (16:57 +0000)]
r300: Removed the deprecated $XFree86$ CVS keywords.

17 years agor300: Corrected the string for polygon mode; it wasn't updated from unkXXX.
Oliver McFadden [Sun, 18 Mar 2007 16:44:20 +0000 (16:44 +0000)]
r300: Corrected the string for polygon mode; it wasn't updated from unkXXX.

17 years agonouveau: avoid using uninitialised TexSrcUnit.
Ben Skeggs [Sun, 18 Mar 2007 13:08:45 +0000 (00:08 +1100)]
nouveau: avoid using uninitialised TexSrcUnit.

17 years agomesa: SWAP_BUFF support when calling DrawPixels(DEPTH_COMPONENT)
Xiang, Haihao [Sun, 18 Mar 2007 10:44:51 +0000 (18:44 +0800)]
mesa: SWAP_BUFF support when calling DrawPixels(DEPTH_COMPONENT)
or TexImage(DEPTH_COMPONENT)

17 years agomesa: enhance fxt1_quantize_ALPHA1
Xiang, Haihao [Sun, 18 Mar 2007 10:34:21 +0000 (18:34 +0800)]
mesa: enhance fxt1_quantize_ALPHA1

If possible, let minCol != maxCol

17 years agoi965: fix for FXT1 & S3TC texture format
Xiang, Haihao [Sun, 18 Mar 2007 10:26:16 +0000 (18:26 +0800)]
i965: fix for FXT1 & S3TC texture format

choose the right mesa texformat for FXT1 & S3TC

17 years agoUse _mesa_copy_instructions rather than memcpy in _mesa_insert_mvp_code.
Oliver McFadden [Sun, 18 Mar 2007 07:21:21 +0000 (07:21 +0000)]
Use _mesa_copy_instructions rather than memcpy in _mesa_insert_mvp_code.

17 years agofix some format conversion bugs in glGetTexImage(), bug 10288
Haihao Xiang [Sat, 17 Mar 2007 15:42:36 +0000 (09:42 -0600)]
fix some format conversion bugs in glGetTexImage(), bug 10288

17 years agor300: change vendor string to DRI R300 Project
Dave Airlie [Sat, 17 Mar 2007 05:46:24 +0000 (16:46 +1100)]
r300: change vendor string to DRI R300 Project

17 years agoAssorted fixes for dealing with zero-size frame/renderbuffers.
Brian [Fri, 16 Mar 2007 17:00:07 +0000 (11:00 -0600)]
Assorted fixes for dealing with zero-size frame/renderbuffers.

In xmesa_check_and_update_buffer_size() handle xmctx==NULL correctly: still
call _mesa_resize_framebufer().  If we don't we can wind up in a situation
where the framebuffer size is non-zero but an attached renderbuffer size
is still initialized to zero.  This inconsistancy can later cause problems.
Check for zero-size renderbuffers in update_color_draw_buffers() and
update_color_read_buffer().
See bug 7205.

17 years agoColortable re-org.
Brian [Fri, 16 Mar 2007 15:36:12 +0000 (09:36 -0600)]
Colortable re-org.

The pixel transfer path has three color table lookups.
Use an array [3] to store that info, rather than separate variables.