mesa.git
14 years agoMerge branch 'mesa_7_5_branch'
Brian Paul [Fri, 14 Aug 2009 17:27:51 +0000 (11:27 -0600)]
Merge branch 'mesa_7_5_branch'

14 years agomesa: new _mesa_append_uniforms_to_file() debug/logging function
Brian Paul [Fri, 14 Aug 2009 17:26:20 +0000 (11:26 -0600)]
mesa: new _mesa_append_uniforms_to_file() debug/logging function

14 years agomesa: call _mesa_valid_to_render()
Brian Paul [Fri, 14 Aug 2009 16:48:31 +0000 (10:48 -0600)]
mesa: call _mesa_valid_to_render()

14 years agovbo: call _mesa_valid_to_render()
Brian Paul [Fri, 14 Aug 2009 16:46:04 +0000 (10:46 -0600)]
vbo: call _mesa_valid_to_render()

14 years agomesa: new _mesa_valid_to_render() function
Brian Paul [Fri, 14 Aug 2009 16:45:17 +0000 (10:45 -0600)]
mesa: new _mesa_valid_to_render() function

Tests if the current shader/program is valid and that the framebuffer is
complete.  To be called by glBegin, glDrawArrays, etc.

14 years agomesa: minor error string changes
Brian Paul [Fri, 14 Aug 2009 16:41:03 +0000 (10:41 -0600)]
mesa: minor error string changes

14 years agodocs: docs: document new --with-max-width/height config options
Brian Paul [Fri, 14 Aug 2009 17:24:20 +0000 (11:24 -0600)]
docs: docs: document new --with-max-width/height config options

14 years agoAdd a FAQ about internal buffer sizes.
Brian Paul [Fri, 14 Aug 2009 17:23:18 +0000 (11:23 -0600)]
Add a FAQ about internal buffer sizes.

(cherry picked from master, commit 9a8781bd24730374e14568f67f7db8a9cc444bb4)

14 years agoAdd configure options for MAX_WIDTH/HEIGHT.
Brian Paul [Fri, 14 Aug 2009 17:23:00 +0000 (11:23 -0600)]
Add configure options for MAX_WIDTH/HEIGHT.

This adds two --with configure options for setting defines for
MAX_WIDTH and MAX_HEIGHT.  It's conceivably just as easy to define
these in CFLAGS manually, but this way users don't need to know
about internal Mesa details.

Patch updated by BrianP to set DEFINES, not CFLAGS.

(cherry picked from master, commit 7085dce750f478312a47f474330d63cc900a8448)

14 years agoAllow external settings of MAX_WIDTH/HEIGHT.
Brian Paul [Fri, 14 Aug 2009 17:22:37 +0000 (11:22 -0600)]
Allow external settings of MAX_WIDTH/HEIGHT.

Conditionalize MAX_WIDTH / MAX_HEIGHT defines so that users can
set them via CFLAGS.

(cherry picked from master, commit 66bc17e80e22d8f205cc02171b1c266feab6631f)

14 years agost/xlib: reduce the proliferation of GLX context types
Keith Whitwell [Fri, 14 Aug 2009 16:56:33 +0000 (17:56 +0100)]
st/xlib: reduce the proliferation of GLX context types

Now there is just a single, struct __GLXcontextRec, which is the
GLXContext typedef has already been defined as a pointer to.  I
believe this is the intended usage, that GLX implementations should
define that struct as they require.

Merge the two previous structs into one and get rid of the
no-longer-necessary type casts and sub-classing.

14 years agost/dri: remove unused dummyContext value
Keith Whitwell [Fri, 14 Aug 2009 12:41:57 +0000 (13:41 +0100)]
st/dri: remove unused dummyContext value

14 years agomesa: move assertions in test_attachment_completeness()
Brian Paul [Fri, 14 Aug 2009 16:30:10 +0000 (10:30 -0600)]
mesa: move assertions in test_attachment_completeness()

Put the assertions after the error checks.

14 years agonv50: fix mipmap offsets and tiling
Christoph Bumiller [Fri, 14 Aug 2009 16:23:55 +0000 (18:23 +0200)]
nv50: fix mipmap offsets and tiling

The hardware expects a texture's tile mode to change with
the mipmap level.
Also, only multiply by block size once to obtain size.

14 years agonv50: make sure we don't re-emit outdated scissor state
Christoph Bumiller [Fri, 14 Aug 2009 16:16:46 +0000 (18:16 +0200)]
nv50: make sure we don't re-emit outdated scissor state

Since we don't turn off scissors, we need to update the
stateobj when the framebuffer size changes.

14 years agonv50: make use of the y-origin switch
Christoph Bumiller [Fri, 14 Aug 2009 16:06:24 +0000 (18:06 +0200)]
nv50: make use of the y-origin switch

Now that we know how to make the hardware have y-coordinate origin
top, we can get rid of all the inversion introduced earlier.

14 years agodocs: document new --with-max-width/height config options
Brian Paul [Fri, 14 Aug 2009 15:00:15 +0000 (09:00 -0600)]
docs: document new --with-max-width/height config options

14 years agoAdd a FAQ about internal buffer sizes.
Tom Fogal [Fri, 14 Aug 2009 01:51:57 +0000 (19:51 -0600)]
Add a FAQ about internal buffer sizes.

14 years agoAdd configure options for MAX_WIDTH/HEIGHT.
Tom Fogal [Fri, 14 Aug 2009 01:40:30 +0000 (19:40 -0600)]
Add configure options for MAX_WIDTH/HEIGHT.

This adds two --with configure options for setting defines for
MAX_WIDTH and MAX_HEIGHT.  It's conceivably just as easy to define
these in CFLAGS manually, but this way users don't need to know
about internal Mesa details.

Patch updated by BrianP to set DEFINES, not CFLAGS.

14 years agoAllow external settings of MAX_WIDTH/HEIGHT.
Tom Fogal [Fri, 14 Aug 2009 01:23:54 +0000 (19:23 -0600)]
Allow external settings of MAX_WIDTH/HEIGHT.

Conditionalize MAX_WIDTH / MAX_HEIGHT defines so that users can
set them via CFLAGS.

14 years agointel: in intel_context struct use typedef for sarea struct
Tobias Doerffel [Fri, 14 Aug 2009 14:50:43 +0000 (08:50 -0600)]
intel: in intel_context struct use typedef for sarea struct

Using drm_i915_sarea_t instead of struct drm_i915_sarea seems to be
a common standard now, therefore fix it also in intel_context
structure. Additionally this silences a compiler warning:

intel_swapbuffers.c: In function `intelFixupVblank':
intel_swapbuffers.c:48: warning: initialization from incompatible pointer type

Signed-off-by: Tobias Doerffel <tobias.doerffel@gmail.com>
14 years agomesa: make sure r300/compiler/ sources are included in tarball
Thierry Vignaud [Fri, 14 Aug 2009 14:16:35 +0000 (08:16 -0600)]
mesa: make sure r300/compiler/ sources are included in tarball

14 years agost/vega: Add more symbols defined by mesa/st.
Chia-I Wu [Fri, 14 Aug 2009 05:33:48 +0000 (13:33 +0800)]
st/vega: Add more symbols defined by mesa/st.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
14 years agonv50: fix typo in REALLOC's 2nd argument in ctor_immd
Christoph Bumiller [Fri, 14 Aug 2009 13:26:58 +0000 (15:26 +0200)]
nv50: fix typo in REALLOC's 2nd argument in ctor_immd

14 years agor600: emit SURFACE_BASE_UPDATE on depth base updates on rv6xx
Alex Deucher [Fri, 14 Aug 2009 05:33:45 +0000 (01:33 -0400)]
r600: emit SURFACE_BASE_UPDATE on depth base updates on rv6xx

14 years agoglsl: re-write Makefile after I called it bad.
Dave Airlie [Fri, 14 Aug 2009 00:03:51 +0000 (10:03 +1000)]
glsl: re-write Makefile after I called it bad.

14 years agoprogs/glsl: added multitex.shtest config file
Brian Paul [Thu, 13 Aug 2009 22:03:01 +0000 (16:03 -0600)]
progs/glsl: added multitex.shtest config file

14 years agoprogs/glsl: set generic vertex attribute values
Brian Paul [Thu, 13 Aug 2009 22:02:24 +0000 (16:02 -0600)]
progs/glsl: set generic vertex attribute values

14 years agoprogs/glsl: add type field to shtest config files
Brian Paul [Thu, 13 Aug 2009 21:53:49 +0000 (15:53 -0600)]
progs/glsl: add type field to shtest config files

Plus, texture loading.

14 years agomesa: added *.shtest files to demo tarball
Brian Paul [Thu, 13 Aug 2009 21:06:28 +0000 (15:06 -0600)]
mesa: added *.shtest files to demo tarball

14 years agoglsl/tests: skinning.o
Dave Airlie [Thu, 13 Aug 2009 22:35:49 +0000 (08:35 +1000)]
glsl/tests: skinning.o

worst Makefile ever. not sure what is going on here, hopefully
this fixes tinderbox

14 years agor600: move non-surface related cb state to general state
Alex Deucher [Thu, 13 Aug 2009 21:55:42 +0000 (17:55 -0400)]
r600: move non-surface related cb state to general state

14 years agor600: move non-surface related depth state to general state
Alex Deucher [Thu, 13 Aug 2009 21:29:24 +0000 (17:29 -0400)]
r600: move non-surface related depth state to general state

14 years agoglx: indent -br -i3 -npcs --no-tabs
RALOVICH, Kristóf [Wed, 12 Aug 2009 10:41:22 +0000 (12:41 +0200)]
glx: indent -br -i3 -npcs --no-tabs

Some manual intervention applied since XEXT_* and other macro magic
fooled indent. Auto generated files were also skipped.

14 years agomesa: fix some invalid memory reads
Brian Paul [Thu, 13 Aug 2009 20:38:27 +0000 (14:38 -0600)]
mesa: fix some invalid memory reads

We were passing the address of a float to functions that would deref the
pointer as an array.

14 years agoprogs/tests: hack a PBO/dlist test
Brian Paul [Thu, 13 Aug 2009 20:07:25 +0000 (14:07 -0600)]
progs/tests: hack a PBO/dlist test

14 years agomesa: fix warnings about locals hiding function params
Brian Paul [Thu, 13 Aug 2009 20:05:52 +0000 (14:05 -0600)]
mesa: fix warnings about locals hiding function params

14 years agomesa: add missing PBO mapping code in unpack_image()
Brian Paul [Thu, 13 Aug 2009 20:00:21 +0000 (14:00 -0600)]
mesa: add missing PBO mapping code in unpack_image()

14 years agomain: fix some potential memory leaks
Brian Paul [Thu, 13 Aug 2009 19:48:36 +0000 (13:48 -0600)]
main: fix some potential memory leaks

Allocate dlist images after error checking.
Record GL_OUT_OF_MEMORY when we can't make a copy of an image.

14 years agomesa: fix some potential uninitialized memory references
Brian Paul [Thu, 13 Aug 2009 19:44:31 +0000 (13:44 -0600)]
mesa: fix some potential uninitialized memory references

14 years agoglsl: fix some uninitialized pointers
Brian Paul [Thu, 13 Aug 2009 19:44:01 +0000 (13:44 -0600)]
glsl: fix some uninitialized pointers

14 years agoprogs/util: ignore pre-defined uniforms in SetUniformValues()
Brian Paul [Thu, 13 Aug 2009 18:53:20 +0000 (12:53 -0600)]
progs/util: ignore pre-defined uniforms in SetUniformValues()

14 years agoprogs/glsl: new shtest program, a simple shader test harness app
Brian Paul [Thu, 13 Aug 2009 18:52:13 +0000 (12:52 -0600)]
progs/glsl: new shtest program, a simple shader test harness app

This commit includes some sample config files (*.shtest)

14 years agoglsl: fix incorrect attribute size
Brian Paul [Thu, 13 Aug 2009 18:43:09 +0000 (12:43 -0600)]
glsl: fix incorrect attribute size

14 years agotnl: if NAN_CHECK is enabled, also assert that pos.x != 0
Brian Paul [Thu, 13 Aug 2009 18:42:52 +0000 (12:42 -0600)]
tnl: if NAN_CHECK is enabled, also assert that pos.x != 0

14 years agomesa: s/assert/ASSERT/ in _mesa_reference_texobj()
Brian Paul [Thu, 13 Aug 2009 16:29:15 +0000 (10:29 -0600)]
mesa: s/assert/ASSERT/ in _mesa_reference_texobj()

We want the no-op ASSERT for non-debug builds.

14 years agomesa: rework error check in glGetTexLevelParameter(), remove tex_image_dimensions()
Brian Paul [Thu, 13 Aug 2009 16:18:50 +0000 (10:18 -0600)]
mesa: rework error check in glGetTexLevelParameter(), remove tex_image_dimensions()

14 years agomesa: if maxLevels==0, target is invalid
Brian Paul [Thu, 13 Aug 2009 16:16:59 +0000 (10:16 -0600)]
mesa: if maxLevels==0, target is invalid

14 years agomesa: add extension checks in _mesa_max_texture_levels()
Brian Paul [Thu, 13 Aug 2009 16:14:13 +0000 (10:14 -0600)]
mesa: add extension checks in _mesa_max_texture_levels()

14 years agomesa: minor clean-ups in bumpmap functions
Brian Paul [Thu, 13 Aug 2009 16:01:38 +0000 (10:01 -0600)]
mesa: minor clean-ups in bumpmap functions

14 years agomesa: use _mesa_get_current_tex_unit() in more places
Brian Paul [Thu, 13 Aug 2009 15:55:34 +0000 (09:55 -0600)]
mesa: use _mesa_get_current_tex_unit() in more places

14 years agomesa: refactor: move _mesa_is_color/depth/stencil_format() helpers to image.c
Brian Paul [Thu, 13 Aug 2009 15:46:42 +0000 (09:46 -0600)]
mesa: refactor: move _mesa_is_color/depth/stencil_format() helpers to image.c

14 years agomesa: move _mesa_Get[Compressed]TexImage() to texgetimage.c
Brian Paul [Thu, 13 Aug 2009 15:38:39 +0000 (09:38 -0600)]
mesa: move _mesa_Get[Compressed]TexImage() to texgetimage.c

All the glGetTexImage code is in one file now.

14 years agomesa: short-circuit no-change in _mesa_DepthRange()
Brian Paul [Tue, 11 Aug 2009 21:46:46 +0000 (15:46 -0600)]
mesa: short-circuit no-change in _mesa_DepthRange()

14 years agost/dri: Add support for GLX_EXT_texture_from_pixmap with direct rendering.
Michel Dänzer [Thu, 13 Aug 2009 18:24:09 +0000 (20:24 +0200)]
st/dri: Add support for GLX_EXT_texture_from_pixmap with direct rendering.

14 years agogallium/drm: Handle circular dependencies in the auxiliary libraries with make.
Michel Dänzer [Thu, 13 Aug 2009 16:46:53 +0000 (18:46 +0200)]
gallium/drm: Handle circular dependencies in the auxiliary libraries with make.

14 years agost/xorg: Fix DRI2 CopyRegion hook.
Michel Dänzer [Thu, 13 Aug 2009 16:46:53 +0000 (18:46 +0200)]
st/xorg: Fix DRI2 CopyRegion hook.

Use GC CopyArea op for proper translation and clipping, and throttle full
buffer swaps / frontbuffer flushes.

14 years agotgsi: add simple facility for releasing and reusing temporaries
Keith Whitwell [Thu, 13 Aug 2009 16:22:16 +0000 (17:22 +0100)]
tgsi: add simple facility for releasing and reusing temporaries

14 years agotgsi: rename ureg src/dest converters
Keith Whitwell [Thu, 13 Aug 2009 16:20:04 +0000 (17:20 +0100)]
tgsi: rename ureg src/dest converters

Also fix a typo in ureg_src().

14 years agodraw: Remove unused variable.
José Fonseca [Thu, 13 Aug 2009 15:33:50 +0000 (16:33 +0100)]
draw: Remove unused variable.

14 years agoscons: Handle Circular dependencies in the libraries.
José Fonseca [Thu, 13 Aug 2009 15:32:51 +0000 (16:32 +0100)]
scons: Handle Circular dependencies in the libraries.

14 years agoMerge branch 'mesa_7_5_branch'
Keith Whitwell [Thu, 13 Aug 2009 14:57:23 +0000 (15:57 +0100)]
Merge branch 'mesa_7_5_branch'

14 years agodraw: cope with more primitives in draw_pipeline_run
Keith Whitwell [Thu, 13 Aug 2009 14:54:10 +0000 (15:54 +0100)]
draw: cope with more primitives in draw_pipeline_run

This previously was used only for decomposed (POINT/LINE/TRI) primitives,
but for some time a full range of primitives could end up in here.

Fixes trivial/lineloop-clip on softpipe, among others.
(cherry picked from commit 87cd8a3b8a2407b30916be418ff2f95dfea5d2ad)

14 years agotgsi: turn off debugging
Keith Whitwell [Thu, 13 Aug 2009 13:28:01 +0000 (14:28 +0100)]
tgsi: turn off debugging

14 years agotgsi: use REALLOC for growing token pool
Keith Whitwell [Thu, 13 Aug 2009 13:27:42 +0000 (14:27 +0100)]
tgsi: use REALLOC for growing token pool

14 years agoutil: silence warnings for third REALLOC argument
Keith Whitwell [Thu, 13 Aug 2009 13:26:50 +0000 (14:26 +0100)]
util: silence warnings for third REALLOC argument

Our fallback realloc path requires an old_size argument, but the posix
varient doesn't need this.  Add some code to avoid gcc unused variable
warnings for this extra argument.

14 years agoutil: remove unneeded includes
Keith Whitwell [Thu, 13 Aug 2009 12:42:42 +0000 (13:42 +0100)]
util: remove unneeded includes

14 years agoutil: convert u_simple_shaders to use tgsi_ureg
Keith Whitwell [Thu, 13 Aug 2009 11:46:32 +0000 (12:46 +0100)]
util: convert u_simple_shaders to use tgsi_ureg

Much nicer now.

14 years agotgsi: add tgsi_ureg, a simplified tgsi shader builder
Keith Whitwell [Thu, 13 Aug 2009 11:38:58 +0000 (12:38 +0100)]
tgsi: add tgsi_ureg, a simplified tgsi shader builder

This is modelled on the nice & easy-to-use facilities we had
for building shaders in mesa, eg. in texenvprogram.c and friends.

Key points include pass-by-value register structs that can be manipulated
in a functional style, eg:

   negate(swizzle(reg, X,X,X,X))

and per-opcode instruction functions, eg:

   emit_MOV( p, writemask(dst, 0x1), negate(src));

and similar.

Additionally, the interface allows mixed emit of instructions and decls,
which are sorted out internally to obey TGSI ordering.

Immediates may be emitted at any time and are scanned against existing
immediates to try and reduce redundancy.

Not all TGSI functionality is accessible through this interface, but
most or all of what mesa uses should be.

14 years agoi965: fix cube map on IGDNG
Xiang, Haihao [Thu, 13 Aug 2009 10:42:52 +0000 (18:42 +0800)]
i965: fix cube map on IGDNG

14 years agoglsl: remove duplicate frag input entry
Brian Paul [Thu, 13 Aug 2009 02:37:34 +0000 (20:37 -0600)]
glsl: remove duplicate frag input entry

14 years agoMerge branch 'new-frag-attribs'
Brian Paul [Thu, 13 Aug 2009 02:32:41 +0000 (20:32 -0600)]
Merge branch 'new-frag-attribs'

This branch introduces new FRAG_ATTRIB_FACE and FRAG_ATTRIB_PNTC fragment
program inputs for GLSL gl_FrontFacing and gl_PointCoord.  Before, these
attributes were packed with the FOG attribute.  That made things
complicated elsewhere.

14 years agoprogs/glsl: change uniform_info::type field to use GLSL vector types
Brian Paul [Wed, 12 Aug 2009 23:25:49 +0000 (17:25 -0600)]
progs/glsl: change uniform_info::type field to use GLSL vector types

14 years agodemos: call SetUniformValues()
Brian Paul [Wed, 12 Aug 2009 22:17:18 +0000 (16:17 -0600)]
demos: call SetUniformValues()

14 years agomesa: const qualifiers
Brian Paul [Wed, 12 Aug 2009 21:43:50 +0000 (15:43 -0600)]
mesa: const qualifiers

14 years agovbo: use _mesa_is_bufferobj()
Brian Paul [Wed, 12 Aug 2009 21:42:51 +0000 (15:42 -0600)]
vbo: use _mesa_is_bufferobj()

14 years agodemos: rename InitUniforms() to SetUniformValues()
Brian Paul [Wed, 12 Aug 2009 19:53:56 +0000 (13:53 -0600)]
demos: rename InitUniforms() to SetUniformValues()

And call new PrintUniforms() in demos.

14 years agoprogs/util: added more shader utility functions
Brian Paul [Wed, 12 Aug 2009 19:50:26 +0000 (13:50 -0600)]
progs/util: added more shader utility functions

14 years agomesa: use _mesa_is_bufferobj()
Brian Paul [Wed, 12 Aug 2009 19:46:16 +0000 (13:46 -0600)]
mesa: use _mesa_is_bufferobj()

14 years agomesa: use _mesa_is_bufferobj()
Brian Paul [Wed, 12 Aug 2009 19:46:03 +0000 (13:46 -0600)]
mesa: use _mesa_is_bufferobj()

14 years agomesa: new _mesa_is_bufferobj() function
Brian Paul [Wed, 12 Aug 2009 19:44:43 +0000 (13:44 -0600)]
mesa: new _mesa_is_bufferobj() function

Tests if the given buffer object is a user-created, non-default buffer object.
Use this instead of testing bufferobj->Name != 0.

14 years agoi965: Make the cube mapping RCP use a writemask.
Eric Anholt [Wed, 12 Aug 2009 20:49:06 +0000 (13:49 -0700)]
i965: Make the cube mapping RCP use a writemask.

Fixes cube mapping since the scalar changes.

14 years agoi965: Allocate destination registers for GLSL TEX instructions contiguously.
Eric Anholt [Wed, 12 Aug 2009 20:17:15 +0000 (13:17 -0700)]
i965: Allocate destination registers for GLSL TEX instructions contiguously.

This matches brw_wm_pass*.c behavior, and fixes the norsetto shadow demo.

Bug #19489

14 years agoi965: drop dead scalar handling in GLSL.
Eric Anholt [Wed, 12 Aug 2009 20:00:23 +0000 (13:00 -0700)]
i965: drop dead scalar handling in GLSL.

14 years agoi965: Correct brw_wm_nr_args for WM_DELTAXY and WM_PIXELXY.
Eric Anholt [Wed, 12 Aug 2009 19:54:43 +0000 (12:54 -0700)]
i965: Correct brw_wm_nr_args for WM_DELTAXY and WM_PIXELXY.

14 years agoi965: Drop GLSL ABS code, which is translated away in brw_wm_fp.
Eric Anholt [Wed, 12 Aug 2009 01:13:57 +0000 (18:13 -0700)]
i965: Drop GLSL ABS code, which is translated away in brw_wm_fp.

14 years agoi965: Drop code for emitting OPCODE_SUB, since brw_wm_fp.c makes it an ADD.
Eric Anholt [Tue, 11 Aug 2009 23:40:20 +0000 (16:40 -0700)]
i965: Drop code for emitting OPCODE_SUB, since brw_wm_fp.c makes it an ADD.

14 years agoi965: Store the dispatch width in the WM compile struct.
Eric Anholt [Tue, 11 Aug 2009 23:02:54 +0000 (16:02 -0700)]
i965: Store the dispatch width in the WM compile struct.

I'll be using this in merging brw_wm_emit.c and brw_wm_glsl.c

14 years agoi965: Handle scalar result swizzling in shared GLSL/non-GLSL code.
Eric Anholt [Wed, 12 Aug 2009 19:26:19 +0000 (12:26 -0700)]
i965: Handle scalar result swizzling in shared GLSL/non-GLSL code.

This is preparation for merging of brw_wm_glsl.c and
brw_wm_emit.c, and glsl.c doesn't swizzle channel results around.

14 years agoi965: Flag ARL-using programs as requiring brw_wm_glsl.c
Eric Anholt [Wed, 12 Aug 2009 18:36:07 +0000 (11:36 -0700)]
i965: Flag ARL-using programs as requiring brw_wm_glsl.c

This doesn't fix the glean testcase, but I guess it provides hope.

14 years agoi965: Remove some unused WM opcode args.
Eric Anholt [Wed, 12 Aug 2009 18:33:11 +0000 (11:33 -0700)]
i965: Remove some unused WM opcode args.

14 years agoi965: Avoid re-uploading the index buffer when we don't need to.
Eric Anholt [Tue, 11 Aug 2009 21:48:03 +0000 (14:48 -0700)]
i965: Avoid re-uploading the index buffer when we don't need to.

No performance difference proven at 95% confidence with my GLSL demo (n=10).

14 years agor600: fix warning
Alex Deucher [Wed, 12 Aug 2009 19:38:45 +0000 (15:38 -0400)]
r600: fix warning

14 years agor600: state cleanups
Alex Deucher [Wed, 12 Aug 2009 19:34:24 +0000 (15:34 -0400)]
r600: state cleanups

14 years agor600: clean up Create/DestroyContext
Alex Deucher [Wed, 12 Aug 2009 18:49:07 +0000 (14:49 -0400)]
r600: clean up Create/DestroyContext

14 years agor200: Prevent TexGenMatrix from leaking when destroying r200 context.
Pauli Nieminen [Tue, 4 Aug 2009 11:42:20 +0000 (14:42 +0300)]
r200: Prevent TexGenMatrix from leaking when destroying r200 context.

Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
14 years agovbo: fix incorrect pointer
Brian Paul [Wed, 12 Aug 2009 19:16:41 +0000 (13:16 -0600)]
vbo: fix incorrect pointer

14 years agoglsl: add gl_Vertex, gl_Normal, etc to list of active attributes
Brian Paul [Wed, 12 Aug 2009 18:31:57 +0000 (12:31 -0600)]
glsl: add gl_Vertex, gl_Normal, etc to list of active attributes

If a vertex shader uses gl_Vertex, gl_Normal, etc, we need to include them
when the user queries the list of active attributes.  Before this we were
just including the user-defined attributes.

14 years agoglsl: move predefined shader input/output info/code to slang_builtin.c
Brian Paul [Wed, 12 Aug 2009 18:27:35 +0000 (12:27 -0600)]
glsl: move predefined shader input/output info/code to slang_builtin.c

This is a more logical place for this code.
Also add some functions for querying vertex shader input names, types, etc.

14 years agovbo: Avoid extra validation of DrawElements.
Eric Anholt [Tue, 11 Aug 2009 19:31:01 +0000 (12:31 -0700)]
vbo: Avoid extra validation of DrawElements.

This saves mapping the index buffer to get a bounds on the indices that
drivers just drop on the floor in the VBO case (cache win), saves a bonus
walk of the indices in the CheckArrayBounds case, and other miscellaneous
validation.  On intel it's a particularly a large win (50-100% in my app)
because even though we let the indices stay in both CPU and GPU caches, we
still end up waiting for the GPU to be done with the buffer before reading
from it.

Drivers that want the min/max_index fields must now check index_bounds_valid
and use vbo_get_minmax_index before using them.