mesa.git
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.

17 years agoadded a renderbuffer comment
Brian [Fri, 16 Mar 2007 14:36:22 +0000 (08:36 -0600)]
added a renderbuffer comment

17 years agoadded null xmctx check to XMesaResizeBuffers(), bug 7205
Mathias Hopf [Fri, 16 Mar 2007 14:28:34 +0000 (08:28 -0600)]
added null xmctx check to XMesaResizeBuffers(), bug 7205

17 years agosilently ignore DeleteProgram/Shader(id=0)
Brian [Thu, 15 Mar 2007 22:07:39 +0000 (16:07 -0600)]
silently ignore DeleteProgram/Shader(id=0)

17 years agoin _mesa_GetColorTable, return silently if table size is 0
Brian [Thu, 15 Mar 2007 22:06:58 +0000 (16:06 -0600)]
in _mesa_GetColorTable, return silently if table size is 0

17 years agoFixed a minor typo in the comment near _mesa_copy_instructions.
Oliver McFadden [Thu, 15 Mar 2007 21:57:31 +0000 (21:57 +0000)]
Fixed a minor typo in the comment near _mesa_copy_instructions.

17 years agor300: Added _mesa_copy_instructions.
Oliver McFadden [Thu, 15 Mar 2007 20:55:30 +0000 (20:55 +0000)]
r300: Added _mesa_copy_instructions.

17 years agor300: Renamed r300_vertexprog.c to r300_vertprog.c
Oliver McFadden [Thu, 15 Mar 2007 20:39:07 +0000 (20:39 +0000)]
r300: Renamed r300_vertexprog.c to r300_vertprog.c

17 years agor300: Use _mesa_alloc_instructions/_mesa_init_instructions instead of malloc.
Oliver McFadden [Thu, 15 Mar 2007 19:49:10 +0000 (19:49 +0000)]
r300: Use _mesa_alloc_instructions/_mesa_init_instructions instead of malloc.

Note that insert_wpos in r300_vertexprog.c is still a little flaky and could be
improved.

17 years agor300: Updated R300 to use the new SWIZZLE macros.
Oliver McFadden [Thu, 15 Mar 2007 19:09:10 +0000 (19:09 +0000)]
r300: Updated R300 to use the new SWIZZLE macros.

17 years agor300: Fixed an unused variable warning and removed some cruft, too.
Oliver McFadden [Thu, 15 Mar 2007 18:44:29 +0000 (18:44 +0000)]
r300: Fixed an unused variable warning and removed some cruft, too.

17 years agor300: Fixed a printf conversion warning.
Oliver McFadden [Thu, 15 Mar 2007 18:29:13 +0000 (18:29 +0000)]
r300: Fixed a printf conversion warning.

17 years agor300: Fixed "no previous prototype for 'r300RefillCurrentDmaRegion'" warning.
Oliver McFadden [Thu, 15 Mar 2007 18:26:01 +0000 (18:26 +0000)]
r300: Fixed "no previous prototype for 'r300RefillCurrentDmaRegion'" warning.

17 years agoadded SWIZZLE_XXXX, YYYY, etc. macros
Brian [Thu, 15 Mar 2007 17:51:54 +0000 (11:51 -0600)]
added SWIZZLE_XXXX, YYYY, etc. macros

17 years agoCommitted Rune Petersen's fragment.position patch (Bug #10024) plus a few small
Oliver McFadden [Thu, 15 Mar 2007 17:35:34 +0000 (17:35 +0000)]
Committed Rune Petersen's fragment.position patch (Bug #10024) plus a few small
corrections.

17 years agono-op clear if buffer width or height is zero (bug 7205)
Brian [Thu, 15 Mar 2007 17:16:41 +0000 (11:16 -0600)]
no-op clear if buffer width or height is zero (bug 7205)

17 years agoadd some rb->Data null ptr checks (bug 7205)
Brian [Thu, 15 Mar 2007 17:11:41 +0000 (11:11 -0600)]
add some rb->Data null ptr checks (bug 7205)

17 years agoMerge branch 'master' of git+ssh://brianp@git.freedesktop.org/git/mesa/mesa
Brian [Thu, 15 Mar 2007 15:03:03 +0000 (09:03 -0600)]
Merge branch 'master' of git+ssh://brianp@git.freedesktop.org/git/mesa/mesa

17 years agoimplement byteswapping for all multi-byte types in _mesa_pack_rgba_span_float(),...
Brian [Thu, 15 Mar 2007 15:02:14 +0000 (09:02 -0600)]
implement byteswapping for all multi-byte types in _mesa_pack_rgba_span_float(), bug 10298

17 years agoFix off by one error in immediate state packet size.
Keith Whitwell [Thu, 15 Mar 2007 10:27:47 +0000 (10:27 +0000)]
Fix off by one error in immediate state packet size.

17 years agopixelmap code simplification
Brian [Wed, 14 Mar 2007 20:56:39 +0000 (14:56 -0600)]
pixelmap code simplification

17 years agoRe-org of gl_pixel_attrib struct.
Brian [Wed, 14 Mar 2007 20:33:46 +0000 (14:33 -0600)]
Re-org of gl_pixel_attrib struct.

Reorder fields according to the order in which the pixel transfer operations
take place.  Improve comments.
Move the pixel maps out of gl_pixel_attrib since they're not supposed to be
pushed/popped by glPush/PopAttrib.
New gl_pixelmap and gl_pixelmaps structs to contain the pixelmaps.

17 years agos/Tranpose/Transpose/
Brian [Wed, 14 Mar 2007 19:34:30 +0000 (13:34 -0600)]
s/Tranpose/Transpose/

17 years agoclear the b->frontxrb->drawable field in xmesa_free_buffer(), see bug 7205
Brian [Wed, 14 Mar 2007 18:52:53 +0000 (12:52 -0600)]
clear the b->frontxrb->drawable field in xmesa_free_buffer(), see bug 7205

17 years agoMerge branch 'master' of git+ssh://brianp@git.freedesktop.org/git/mesa/mesa
Brian [Wed, 14 Mar 2007 18:43:26 +0000 (12:43 -0600)]
Merge branch 'master' of git+ssh://brianp@git.freedesktop.org/git/mesa/mesa

17 years agomove CLIENT_ID code in xmesa_delete_framebuffer(), see bug 7205
Brian [Wed, 14 Mar 2007 18:42:30 +0000 (12:42 -0600)]
move CLIENT_ID code in xmesa_delete_framebuffer(), see bug 7205

17 years agocontinue prev check-in: save ptr to slang_function for SLANG_OPER_CALL
Brian [Wed, 14 Mar 2007 17:07:32 +0000 (11:07 -0600)]
continue prev check-in: save ptr to slang_function for SLANG_OPER_CALL

17 years agoAfter we've found the slang_function ptr for a SLANG_OPER_CALL node, save the ptr...
Brian [Wed, 14 Mar 2007 16:49:35 +0000 (10:49 -0600)]
After we've found the slang_function ptr for a SLANG_OPER_CALL node, save the ptr in the node for reuse.

This can save a tremendous amount of time when resolving types in complex
expressions.  One particular shader was taking several minutes to compile
but now compiles almost instantaneoulsy.

17 years agomake _slang_typeof_function() static
Brian [Wed, 14 Mar 2007 16:16:18 +0000 (10:16 -0600)]
make _slang_typeof_function() static

17 years agoremove old assertion
Brian [Wed, 14 Mar 2007 14:56:01 +0000 (08:56 -0600)]
remove old assertion

17 years agomore bug fixing, error checking
Brian [Tue, 13 Mar 2007 22:50:24 +0000 (16:50 -0600)]
more bug fixing, error checking

17 years agofix a number of issues in _mesa_uniform()
Brian [Tue, 13 Mar 2007 22:32:48 +0000 (16:32 -0600)]
fix a number of issues in _mesa_uniform()

17 years agoremove bogus assertion
Brian [Tue, 13 Mar 2007 22:31:30 +0000 (16:31 -0600)]
remove bogus assertion

17 years agodocument some bug fixes, lots of new features
Brian [Tue, 13 Mar 2007 22:12:23 +0000 (16:12 -0600)]
document some bug fixes, lots of new features

17 years agofix ctx->Pixel.PostConvolutionScale/Bias subscript bugs
Brian [Tue, 13 Mar 2007 22:07:04 +0000 (16:07 -0600)]
fix ctx->Pixel.PostConvolutionScale/Bias subscript bugs

17 years agoCheck for, simplify vec2/3/4(x). Only do call adapting for constructors.
Brian [Tue, 13 Mar 2007 21:58:40 +0000 (15:58 -0600)]
Check for, simplify vec2/3/4(x).  Only do call adapting for constructors.

17 years agoimprove literal printing
Brian [Tue, 13 Mar 2007 21:57:09 +0000 (15:57 -0600)]
improve literal printing

17 years agodisable some debug output
Brian [Tue, 13 Mar 2007 21:55:54 +0000 (15:55 -0600)]
disable some debug output

17 years agobetter error msg for undefined function, disable some debug output
Brian [Tue, 13 Mar 2007 21:55:41 +0000 (15:55 -0600)]
better error msg for undefined function, disable some debug output

17 years agoget rid of float_multiply, float_add, float_divide
Brian [Tue, 13 Mar 2007 21:00:14 +0000 (15:00 -0600)]
get rid of float_multiply, float_add, float_divide

17 years agosync up t_vp_build.c brw_vs_tnl.c a bit
Roland Scheidegger [Tue, 13 Mar 2007 18:04:28 +0000 (19:04 +0100)]
sync up t_vp_build.c brw_vs_tnl.c a bit

Bring over the optimizations for fog and normalized spot dir
from t_vp_build.c to brw_vs_tnl.c. Likewise, port a fix for point size
calc from brw_vs_tnl.c to t_vp_build.c (use ABS(eyez) instead of -eyez). Leave
the now differing point size calcs alone though, not sure what's better (it's
basically MOV, ABS, MUL, DP3 vs. ABS, MAD, MAD).

17 years agoalloc an extra byte in _mesa_ShaderSourceARB() to silence a valgrind warning
Brian [Tue, 13 Mar 2007 17:00:21 +0000 (11:00 -0600)]
alloc an extra byte in _mesa_ShaderSourceARB() to silence a valgrind warning

17 years agobe smarter about which fragment attribs are interpolated before running frag progs
Brian [Tue, 13 Mar 2007 16:58:48 +0000 (10:58 -0600)]
be smarter about which fragment attribs are interpolated before running frag progs

17 years agocomment about SPAN_* vs FRAG_BIT_* values
Brian [Tue, 13 Mar 2007 16:58:23 +0000 (10:58 -0600)]
comment about SPAN_* vs FRAG_BIT_* values

17 years agoCheck if FRAG_RESULT_COLR is written and update span->interpMask, arrayMask.
Brian [Tue, 13 Mar 2007 16:53:16 +0000 (10:53 -0600)]
Check if FRAG_RESULT_COLR is written and update span->interpMask, arrayMask.

Also, fix an assertion.

17 years agoShuffle some code around in the emit_tex() and emit_move() instructions.
Brian [Tue, 13 Mar 2007 16:49:08 +0000 (10:49 -0600)]
Shuffle some code around in the emit_tex() and emit_move() instructions.

Note that the inst ptr returned by new_instruction() may become invalid
after calling emit_() since the emit functions may allocate new instructions
which is done vial realloc().
Also, add some new assertions to try to catch this kind of bug.

17 years agoenable ARB_vertex_buffer_object for more dri drivers
Roland Scheidegger [Tue, 13 Mar 2007 16:43:21 +0000 (17:43 +0100)]
enable ARB_vertex_buffer_object for more dri drivers

ARB_vertex_buffer_object looks like a useful extension even for old chips.
The drivers should not need any code to be able to use this extension since
they just use mesa's vbo code anyway.
Newly enabled for i810, mach64, mga, r128, radeon, savage, sis and unichrome.

17 years agoproperly compute ctx->Texture._EnabledCoordUnits
Brian [Tue, 13 Mar 2007 16:28:26 +0000 (10:28 -0600)]
properly compute ctx->Texture._EnabledCoordUnits

17 years agor300: Renamed the CACHE_CTLSTAT values to include UNKNOWN in the name; not
Oliver McFadden [Tue, 13 Mar 2007 14:46:45 +0000 (14:46 +0000)]
r300: Renamed the CACHE_CTLSTAT values to include UNKNOWN in the name; not

enough information is known about them to be sure as to what the values mean.

17 years agouse movdqu instead of movdqa for unaligned load avoiding a segfault (bug 10265)
Roland Scheidegger [Tue, 13 Mar 2007 12:44:23 +0000 (13:44 +0100)]
use movdqu instead of movdqa for unaligned load avoiding a segfault (bug 10265)

17 years agoAdd defines for the values written to R300_RB3D_ZCACHE_CTLSTAT.
Oliver McFadden [Tue, 13 Mar 2007 06:24:56 +0000 (06:24 +0000)]
Add defines for the values written to R300_RB3D_ZCACHE_CTLSTAT.

Note that just like the values written to R300_RB3D_DSTCACHE_CTLSTAT these
values are really unknown; ideally more reverse engineering should be done to
determine what these values mean and when they should be set.

17 years agoDocumented the value written for R300_TX_CNTL cache flush.
Oliver McFadden [Tue, 13 Mar 2007 06:08:36 +0000 (06:08 +0000)]
Documented the value written for R300_TX_CNTL cache flush.

17 years agomesa: _mesa_unpack_image
Xiang, Haihao [Tue, 13 Mar 2007 05:39:34 +0000 (13:39 +0800)]
mesa: _mesa_unpack_image

1. take packed pixel data as a component
2. fix for GL_BITMAP when compiling glTexImage, etc into
a display list:  a. flip byte if lsbFirst is true since
DefaultPacking->lsbFirst is false. b. handle SkipPixels

17 years agoCorrected values written to R300_RB3D_DSTCACHE_CTLSTAT to either
Oliver McFadden [Tue, 13 Mar 2007 01:31:38 +0000 (01:31 +0000)]
Corrected values written to R300_RB3D_DSTCACHE_CTLSTAT to either
R300_RB3D_DSTCACHE_02 or R300_RB3D_DSTCACHE_0A, rather than hexadecimal values.

17 years agoGuess another unknown register used for R300 pacification.
Oliver McFadden [Tue, 13 Mar 2007 00:48:17 +0000 (00:48 +0000)]
Guess another unknown register used for R300 pacification.

17 years agoImplement GL_ARB_texture_rectangle support
Brian [Mon, 12 Mar 2007 23:29:50 +0000 (17:29 -0600)]
Implement GL_ARB_texture_rectangle support

This includes the sampler2DRect and sampler2DRectShadow types and
the texture2DRect(), texture2DRectProj(), etc. built-in functions.