profile/ivi/mesa.git
15 years agoEnsure GL_EXT_blend_equation_separate is enabled when 2.0 is enabled.
Alan Hourihane [Thu, 6 Aug 2009 14:54:49 +0000 (15:54 +0100)]
Ensure GL_EXT_blend_equation_separate is enabled when 2.0 is enabled.

15 years agoprogs/egl: Add xeglbindtex, really.
Chia-I Wu [Thu, 6 Aug 2009 14:39:25 +0000 (08:39 -0600)]
progs/egl: Add xeglbindtex, really.

Missed this file in the earlier commit.

15 years agomesa: Ignores
Jakob Bornecrantz [Thu, 6 Aug 2009 12:59:05 +0000 (13:59 +0100)]
mesa: Ignores

Got tired of seeing these files in git status all the time

15 years agoi915g: Compile with scons
Jakob Bornecrantz [Thu, 6 Aug 2009 12:50:46 +0000 (13:50 +0100)]
i915g: Compile with scons

15 years agoidentity: Use the correct texture
Jakob Bornecrantz [Thu, 6 Aug 2009 12:20:49 +0000 (13:20 +0100)]
identity: Use the correct texture

15 years agoi965: Fix source depth reg setting for FSes reading and writing to depth.
Eric Anholt [Thu, 6 Aug 2009 03:12:15 +0000 (20:12 -0700)]
i965: Fix source depth reg setting for FSes reading and writing to depth.

For some IZ setups, we'd forget to account for the source depth register
being present, so we'd both read the wrong reg, and write output depth to
the wrong reg.

Bug #22603.

15 years agost/xorg: If we have DRI2 we should also have some sort of hw support
Jakob Bornecrantz [Wed, 5 Aug 2009 23:01:18 +0000 (00:01 +0100)]
st/xorg: If we have DRI2 we should also have some sort of hw support

15 years agoi915g: Always run in sync with the HW
Jakob Bornecrantz [Wed, 5 Aug 2009 23:28:15 +0000 (00:28 +0100)]
i915g: Always run in sync with the HW

15 years agoi915g: The i915 seems more happier with sampler domain so lets use that
Jakob Bornecrantz [Wed, 5 Aug 2009 23:00:24 +0000 (00:00 +0100)]
i915g: The i915 seems more happier with sampler domain so lets use that

15 years agoi915g: Dirty fix for VBO module double flush assert
Jakob Bornecrantz [Wed, 5 Aug 2009 22:59:37 +0000 (23:59 +0100)]
i915g: Dirty fix for VBO module double flush assert

15 years agoi915g: Switch to mapping the batch buffer instead of using subdata
Jakob Bornecrantz [Wed, 5 Aug 2009 22:56:08 +0000 (23:56 +0100)]
i915g: Switch to mapping the batch buffer instead of using subdata

15 years agoprogs/egl: Add xeglbindtex.
Chia-I Wu [Wed, 5 Aug 2009 22:08:48 +0000 (16:08 -0600)]
progs/egl: Add xeglbindtex.

This is a simple demo for eglBindTexImage.  It uses a OpenGL context,
instead of the required OpenGL ES one.  But it still suffices the demo
and test purpose.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
15 years agoegl_softpipe: Add support for pbuffer binding.
Chia-I Wu [Wed, 5 Aug 2009 22:08:07 +0000 (16:08 -0600)]
egl_softpipe: Add support for pbuffer binding.

This adds support for eglBindTexImage and eglReleaseTexImage.  They rely
on the state tracker to do the real work.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
15 years agoegl_softpipe: Flush when switching current context.
Chia-I Wu [Wed, 5 Aug 2009 22:07:39 +0000 (16:07 -0600)]
egl_softpipe: Flush when switching current context.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
15 years agomesa/st: Add support for binding pipe surface to texture.
Chia-I Wu [Wed, 5 Aug 2009 22:07:19 +0000 (16:07 -0600)]
mesa/st: Add support for binding pipe surface to texture.

This commit adds functions to bind a pipe surface to a texture.  This
allows texturing directly from the surface.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
15 years agomesa/main: Add functions to clear and dirty texture objects.
Chia-I Wu [Wed, 5 Aug 2009 22:06:50 +0000 (16:06 -0600)]
mesa/main: Add functions to clear and dirty texture objects.

This commit adds a function to clear a texture object such that there is
no image data associated with it, and a function to dirty it so that it
will be re-tested for completeness.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
15 years agoMerge branch 'mesa_7_5_branch'
Brian Paul [Wed, 5 Aug 2009 20:13:48 +0000 (14:13 -0600)]
Merge branch 'mesa_7_5_branch'

Conflicts:

src/mesa/main/state.c

15 years agodocs:fix glBlitFramebuffer() for Gallium
Brian Paul [Wed, 5 Aug 2009 19:50:21 +0000 (13:50 -0600)]
docs:fix glBlitFramebuffer() for Gallium

15 years agost/mesa: implement BlitFramebuffer() for depth/stencil (incomplete)
Brian Paul [Wed, 5 Aug 2009 19:46:47 +0000 (13:46 -0600)]
st/mesa: implement BlitFramebuffer() for depth/stencil (incomplete)

We now handle the case of blitting Z+stencil to/from combined Z/stencil
surfaces.  But Z-only or stencil-only and separate depth/stencil surfaces
are not yet implemented.

15 years agomesa: generate GL_INVALID_OPERATION for missing z/stencil when blitting
Brian Paul [Wed, 5 Aug 2009 19:44:59 +0000 (13:44 -0600)]
mesa: generate GL_INVALID_OPERATION for missing z/stencil when blitting

If glBlitFramebuffer() is called with GL_DEPTH_BUFFER_BIT or
GL_STENCIL_BUFFER_BIT and the src/dst depth/stencil buffers are absent,
report an error.

15 years agost/mesa: fix Y inversion and optimize st_BlitFramebuffer()
Brian Paul [Wed, 5 Aug 2009 19:26:19 +0000 (13:26 -0600)]
st/mesa: fix Y inversion and optimize st_BlitFramebuffer()

Need to check for Y inversion separately for src/dest buffers.

If both the src and dest regions are upside down, make them right-side
up for a better chance at a fast path.

progs/tests/copypixrate -blit is much faster now.

15 years agoutil: added comment/question about blit clipping
Brian Paul [Wed, 5 Aug 2009 19:22:26 +0000 (13:22 -0600)]
util: added comment/question about blit clipping

15 years agomesa: make _mesa_clip_blit() a shared function
Brian Paul [Wed, 5 Aug 2009 19:21:59 +0000 (13:21 -0600)]
mesa: make _mesa_clip_blit() a shared function

15 years agoutil: added util_blit_pixels() overlap test
Brian Paul [Wed, 5 Aug 2009 19:19:01 +0000 (13:19 -0600)]
util: added util_blit_pixels() overlap test

A comment alluded to this.  Now it's checked.

15 years agoutil: fix util_blit_pixels() test for surface_copy() path
Brian Paul [Wed, 5 Aug 2009 19:09:15 +0000 (13:09 -0600)]
util: fix util_blit_pixels() test for surface_copy() path

For the surface_copy() path require same format, no flipping and no stretching.

Fixes progs/tests/copypixrate -blit

15 years agoutil: reformatting and comments
Brian Paul [Wed, 5 Aug 2009 18:40:50 +0000 (12:40 -0600)]
util: reformatting and comments

15 years agost/xorg: Make it work again
Jakob Bornecrantz [Wed, 5 Aug 2009 18:26:21 +0000 (19:26 +0100)]
st/xorg: Make it work again

15 years agost/egl: Create primary texture not display target
Jakob Bornecrantz [Wed, 5 Aug 2009 18:15:21 +0000 (19:15 +0100)]
st/egl: Create primary texture not display target

15 years agoi915g: Treat primary textures as scanout buffers
Jakob Bornecrantz [Wed, 5 Aug 2009 18:22:34 +0000 (19:22 +0100)]
i915g: Treat primary textures as scanout buffers

15 years agoi915g: Link with trace on EGL and Xorg
Jakob Bornecrantz [Wed, 5 Aug 2009 18:12:53 +0000 (19:12 +0100)]
i915g: Link with trace on EGL and Xorg

15 years agotrace: Use correct texture in drm_api wrapper
Jakob Bornecrantz [Wed, 5 Aug 2009 17:55:57 +0000 (18:55 +0100)]
trace: Use correct texture in drm_api wrapper

15 years agosoftpipe: Also defere primary textures to backend
Jakob Bornecrantz [Wed, 5 Aug 2009 18:13:55 +0000 (19:13 +0100)]
softpipe: Also defere primary textures to backend

15 years agor200: emit colorpitch
Dave Airlie [Wed, 5 Aug 2009 01:26:29 +0000 (11:26 +1000)]
r200: emit colorpitch

15 years agoi965: Fix dangerous warning I let slip in.
Eric Anholt [Wed, 5 Aug 2009 01:07:01 +0000 (18:07 -0700)]
i965: Fix dangerous warning I let slip in.

15 years agoi965: Respect CondSwizzle in OPCODE_IF.
Eric Anholt [Wed, 5 Aug 2009 01:02:31 +0000 (18:02 -0700)]
i965: Respect CondSwizzle in OPCODE_IF.

Fixes piglit glsl-vs-if-bool and progs/glsl/twoside, and will likely be
useful for the looping code.

Bug #18992

15 years agoi965: Emit conditional code updates as required for GLSL VS if statements.
Eric Anholt [Tue, 4 Aug 2009 21:13:27 +0000 (14:13 -0700)]
i965: Emit conditional code updates as required for GLSL VS if statements.

Previously, we'd be branching based on whatever condition code happened to be
laying around.

15 years agoi965: Don't set pop_count in the reserved MBZ area of IF statements.
Eric Anholt [Tue, 4 Aug 2009 23:09:30 +0000 (16:09 -0700)]
i965: Don't set pop_count in the reserved MBZ area of IF statements.

15 years agoi965: Print out ELSE and ENDIF src1 arguments like IF does.
Eric Anholt [Tue, 4 Aug 2009 23:26:37 +0000 (16:26 -0700)]
i965: Print out ELSE and ENDIF src1 arguments like IF does.

15 years agor200: fix off-by-one errors causing 6th texture unit to not work
Roland Scheidegger [Wed, 5 Aug 2009 00:32:09 +0000 (02:32 +0200)]
r200: fix off-by-one errors causing 6th texture unit to not work

both for normal and cube textures, this fixes demos/multiarb
(with 6 enabled texture units) and fixes #23142.

15 years agor200: fix compiler warning (unused var)
Roland Scheidegger [Wed, 5 Aug 2009 00:25:40 +0000 (02:25 +0200)]
r200: fix compiler warning (unused var)

15 years agoradeon: fix miptree comparison breakage
Roland Scheidegger [Tue, 4 Aug 2009 23:12:16 +0000 (01:12 +0200)]
radeon: fix miptree comparison breakage

another case of image never matching miptree in case of compressed textures

15 years agointel: implement intelCompressedTexSubImage2D
Roland Scheidegger [Tue, 4 Aug 2009 23:10:45 +0000 (01:10 +0200)]
intel: implement intelCompressedTexSubImage2D

similar to the radeon code.
passes tests/texcompsub

15 years agotests: also test xoffset in texcompsub test
Roland Scheidegger [Tue, 4 Aug 2009 22:57:08 +0000 (00:57 +0200)]
tests: also test xoffset in texcompsub test

use glCompressedTexSubImage2DARB also with xoffset by splitting into 3 calls
in total. Dunno if the top/bottom reversal is intentional but leave as is.

15 years agointel: Add support for EXT_provoking_vertex.
Eric Anholt [Tue, 4 Aug 2009 18:28:26 +0000 (11:28 -0700)]
intel: Add support for EXT_provoking_vertex.

15 years agoi965: Spell "conditional" correctly.
Eric Anholt [Tue, 4 Aug 2009 20:42:30 +0000 (13:42 -0700)]
i965: Spell "conditional" correctly.

15 years agoi965: Hook up the disassembler for INTEL_DEBUG={wm,vs}.
Eric Anholt [Tue, 4 Aug 2009 22:27:40 +0000 (15:27 -0700)]
i965: Hook up the disassembler for INTEL_DEBUG={wm,vs}.

I was getting tired of doing the dance of INTEL_DEBUG=batch, copying it out,
and running intel-gen4disasm on it.

15 years agoi965: Initial import of disasm code from intel-gen4asm.
Eric Anholt [Tue, 4 Aug 2009 22:00:36 +0000 (15:00 -0700)]
i965: Initial import of disasm code from intel-gen4asm.

There's a bunch of stuff from gen4asm and gpu-tools that we probably want
to make into a library instead of cargo-culting it around.

15 years agoi965: warning fix
Eric Anholt [Tue, 4 Aug 2009 22:29:00 +0000 (15:29 -0700)]
i965: warning fix

15 years agotests/getteximage: test more texture sizes, including npot
Brian Paul [Tue, 4 Aug 2009 22:17:09 +0000 (16:17 -0600)]
tests/getteximage: test more texture sizes, including npot

15 years agomesa: log the shader checksum
Brian Paul [Tue, 4 Aug 2009 21:36:13 +0000 (15:36 -0600)]
mesa: log the shader checksum

15 years agomesa: compute, print shader checksum
Brian Paul [Tue, 4 Aug 2009 21:35:48 +0000 (15:35 -0600)]
mesa: compute, print shader checksum

15 years agomesa: added gl_shader::SourceChecksum field (for debug purposes)
Brian Paul [Tue, 4 Aug 2009 21:34:59 +0000 (15:34 -0600)]
mesa: added gl_shader::SourceChecksum field (for debug purposes)

15 years agomesa: added _mesa_str_checksum()
Brian Paul [Tue, 4 Aug 2009 21:33:53 +0000 (15:33 -0600)]
mesa: added _mesa_str_checksum()

15 years agomesa: clean-up error debug/count code
Brian Paul [Tue, 4 Aug 2009 21:29:00 +0000 (15:29 -0600)]
mesa: clean-up error debug/count code

15 years agomesa: reset ErrorDebugCount to zero in glGetString()
Brian Paul [Tue, 4 Aug 2009 21:28:29 +0000 (15:28 -0600)]
mesa: reset ErrorDebugCount to zero in glGetString()

15 years agomesa: better texture dump/debug code
Brian Paul [Tue, 4 Aug 2009 21:04:37 +0000 (15:04 -0600)]
mesa: better texture dump/debug code

15 years agomesa: more error message info for vertex pointer functions
Brian Paul [Tue, 4 Aug 2009 20:53:24 +0000 (14:53 -0600)]
mesa: more error message info for vertex pointer functions

15 years agomesa: more glGetTexImage() error checking consolidation, new assertion
Brian Paul [Tue, 4 Aug 2009 16:55:29 +0000 (10:55 -0600)]
mesa: more glGetTexImage() error checking consolidation, new assertion

15 years agoi965: Fix RECT shadow sampling by not losing the other texcoords.
Eric Anholt [Tue, 4 Aug 2009 19:39:22 +0000 (12:39 -0700)]
i965: Fix RECT shadow sampling by not losing the other texcoords.

Bug #20821

15 years agodocs: 7.5.1 bug fixes
Brian Paul [Tue, 4 Aug 2009 15:27:49 +0000 (09:27 -0600)]
docs: 7.5.1 bug fixes

15 years agointel: Fix inverted test for disabling flushing of front buffer output.
Brian Paul [Tue, 4 Aug 2009 15:23:17 +0000 (09:23 -0600)]
intel: Fix inverted test for disabling flushing of front buffer output.

The comment disagreed with the code, and nicely drew my eyes to what was
going wrong.

Bug #21774 (blender)
Bug #21788 (readpix)

(cherry picked from master, commit fd65418f600874b05f902b622078b40bc1abb24a)

15 years agointel: Wait on the last swapbuffers to complete before queuing a new one.
Brian Paul [Tue, 4 Aug 2009 15:22:15 +0000 (09:22 -0600)]
intel: Wait on the last swapbuffers to complete before queuing a new one.

This fixes jerkiness in doom3 and other apps since the kernel change to
throttle less absurdly, which led to a thundering herd of frames.

Because this is a rather minimal fix, there is at least one downside: If
the whole scene completes in one batchbuffer, we'll end up stalling the GPU.

Thanks to Michel Dänzer for suggesting using glFlush to signal frame end
instead of going to all the effort of adding a new DRI2 extension.

(cherry picked from master, commit 0828579a658af01a64b5e699175dc9bbbedcd685)

15 years agotexenv: Use VP->Current, since _Current isn't updated at this point.
Brian Paul [Tue, 4 Aug 2009 15:15:33 +0000 (09:15 -0600)]
texenv: Use VP->Current, since _Current isn't updated at this point.

(cherry picked from master, commit a9ba1bfeb3a2852c6eda718e73c46c972a286648)

15 years agotexenv: Match state.c in deciding whether we'll be using a vertex shader.
Brian Paul [Tue, 4 Aug 2009 15:15:09 +0000 (09:15 -0600)]
texenv: Match state.c in deciding whether we'll be using a vertex shader.

(cherry picked from master, commit 40990d9dfb20b69585859b2a45596aa46c20140a)

15 years agotexenv: Add missing dependency on VP changes.
Brian Paul [Tue, 4 Aug 2009 15:14:33 +0000 (09:14 -0600)]
texenv: Add missing dependency on VP changes.

Funny thing is I annotated this dependency in
e5f63c403b767f9974e8eb5d412c012b8a69287f, but didn't actually use it.

(cherry picked from master, commit 03187571b63d97e3d1406d329c5e760e16ef3181)

Conflicts:
src/mesa/main/state.c

15 years agomklib: Ensure target directory exists for library
Dan Nicholson [Mon, 3 Aug 2009 15:35:43 +0000 (08:35 -0700)]
mklib: Ensure target directory exists for library

Instead of relying on the Makefile to always generate $(TOP)/$(LIB_DIR),
just have mklib handle creating the directory. This should fix any races
when using parallel make.

Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
(cherry picked from commit 23671e5358ffc0abfec83aeea9a515b09a6b35f3)

15 years agoAdd missing X11_INCLUDES to egl/drivers/demo and egl/main.
Peter Hutterer [Mon, 20 Jul 2009 06:11:26 +0000 (16:11 +1000)]
Add missing X11_INCLUDES to egl/drivers/demo and egl/main.

Compiling mesa on a system with no X headers installed in the default
include paths fails due to missing X11 includes. The header includes are
picked up by configure but not applied.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
(cherry picked from commit 5358e54d1ae64ccfa81199b343a2931b415fcc0a)

15 years agomklib: Ensure target directory exists for library
Dan Nicholson [Mon, 3 Aug 2009 15:35:43 +0000 (08:35 -0700)]
mklib: Ensure target directory exists for library

Instead of relying on the Makefile to always generate $(TOP)/$(LIB_DIR),
just have mklib handle creating the directory. This should fix any races
when using parallel make.

Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
15 years agor300g: Slightly saner initialization of some texture / transfer fields.
Michel Dänzer [Tue, 4 Aug 2009 08:57:47 +0000 (10:57 +0200)]
r300g: Slightly saner initialization of some texture / transfer fields.

15 years agoi965: Assert that the offset in the VBO is below the VBO size.
Eric Anholt [Tue, 4 Aug 2009 00:55:14 +0000 (17:55 -0700)]
i965: Assert that the offset in the VBO is below the VBO size.

This avoids sending a bad buffer address to the GPU due to programmer error,
and is permitted by the ARB_vbo spec.  Note that we still have the opportunity
to dereference past the end of the GPU, because we aren't clipping to a
correct _MaxElement, but that appears to be harder than it should be.  This
gets us the 90% solution.

Bug #19911.

15 years agoi965: Even if no VS inputs are set, still load some amount of URB as required.
Eric Anholt [Tue, 4 Aug 2009 00:12:43 +0000 (17:12 -0700)]
i965: Even if no VS inputs are set, still load some amount of URB as required.

See comment on Vertex URB Entry Read Length for VS_STATE.

This, combined with the previous three commits, fixes #22945.

15 years agoi965: Make sure the VS URB size is big enough to fit a VF VUE.
Eric Anholt [Mon, 3 Aug 2009 22:24:02 +0000 (15:24 -0700)]
i965: Make sure the VS URB size is big enough to fit a VF VUE.

This fix is just from code and docs inspection, but it may fix hangs on
some applications.

15 years agoi965: Don't emit bad packets when no VBs are referenced.
Eric Anholt [Thu, 30 Jul 2009 20:40:29 +0000 (13:40 -0700)]
i965: Don't emit bad packets when no VBs are referenced.

It appears that sometimes Mesa (and I suppose a VS could as well) emits
a program which references no vertex data, and thus we end up with
nr_enabled == 0 even though some VBs are enabled.  We'd end up emitting
VB/VE packet headers of 0xffffffff in that case, leading to GPU hangs.

Bug #22945 (wine with an uncompiled VS)

15 years agoi965: Calculate enabled[] and nr_enabled once and re-use the values.
Eric Anholt [Mon, 3 Aug 2009 21:46:18 +0000 (14:46 -0700)]
i965: Calculate enabled[] and nr_enabled once and re-use the values.

The code duplication bothered me.

15 years agotypo fix
Robert Ellison [Mon, 3 Aug 2009 23:09:14 +0000 (17:09 -0600)]
typo fix

somehow, this change was missed on the last checkin

15 years agomesa: fix up some GLAPI XML
Robert Ellison [Mon, 3 Aug 2009 23:04:50 +0000 (17:04 -0600)]
mesa: fix up some GLAPI XML

- Added specifications for the extensions GL_APPLE_flush_buffer_range and
  GL_APPLE_texture_range

- EXT_framebuffer_object.xml strangely held specifications for both
  the GL_EXT_framebuffer_object extension and the GL_EXT_texture_array
  extension.  Split out the GL_EXT_texture_array data into its own
  file.

15 years agoradeon: more fixes for compressed textures
Roland Scheidegger [Mon, 3 Aug 2009 22:21:07 +0000 (00:21 +0200)]
radeon: more fixes for compressed textures

- fix not respecting required hardware stride with compressedTexImage -
  this fixes #22615.
- make sure correct stride is used in various places
- fix stored miptree never matching with a TexImage call with compressed
  texture
- don't always store data with compressedtexsubimage at offset 0,
  and actually use the supplied pixel data... (untested)
- make sure rows for compressed texture handling are rounded up not down

Note that trying to access stored compressed textures in hardware miptrees
from core mesa (get_compressed_teximage, swrast fallbacks) can't work correctly,
since RowStride isn't really set to anything useful, plus some places (at least
get_compressed_teximage) assume this data has native stride and no padding.

15 years agoradeon: Fix inverted test for disabling flushing of front buffer output.
Eric Anholt [Mon, 3 Aug 2009 21:38:16 +0000 (14:38 -0700)]
radeon: Fix inverted test for disabling flushing of front buffer output.

(corresponding fix to the intel driver one)

15 years agointel: Fix inverted test for disabling flushing of front buffer output.
Eric Anholt [Mon, 3 Aug 2009 21:27:41 +0000 (14:27 -0700)]
intel: Fix inverted test for disabling flushing of front buffer output.

The comment disagreed with the code, and nicely drew my eyes to what was
going wrong.

Bug #21774 (blender)
Bug #21788 (readpix)

15 years agointel: Wait on the last swapbuffers to complete before queuing a new one.
Eric Anholt [Tue, 21 Jul 2009 18:23:18 +0000 (11:23 -0700)]
intel: Wait on the last swapbuffers to complete before queuing a new one.

This fixes jerkiness in doom3 and other apps since the kernel change to
throttle less absurdly, which led to a thundering herd of frames.

Because this is a rather minimal fix, there is at least one downside: If
the whole scene completes in one batchbuffer, we'll end up stalling the GPU.

Thanks to Michel Dänzer for suggesting using glFlush to signal frame end
instead of going to all the effort of adding a new DRI2 extension.

15 years agor600: add some new r7xx pci ids
Alex Deucher [Mon, 3 Aug 2009 20:10:32 +0000 (16:10 -0400)]
r600: add some new r7xx pci ids

15 years agotexenv: Use VP->Current, since _Current isn't updated at this point.
Eric Anholt [Mon, 3 Aug 2009 19:38:56 +0000 (12:38 -0700)]
texenv: Use VP->Current, since _Current isn't updated at this point.

15 years agotexenv: Match state.c in deciding whether we'll be using a vertex shader.
Eric Anholt [Mon, 3 Aug 2009 19:36:52 +0000 (12:36 -0700)]
texenv: Match state.c in deciding whether we'll be using a vertex shader.

15 years agotexenv: Add missing dependency on VP changes.
Eric Anholt [Mon, 3 Aug 2009 19:21:03 +0000 (12:21 -0700)]
texenv: Add missing dependency on VP changes.

Funny thing is I annotated this dependency in
e5f63c403b767f9974e8eb5d412c012b8a69287f, but didn't actually use it.

15 years agoxdemo/glxswapcontrol: Move get_framge_usage after the swap.
Pauli Nieminen [Mon, 3 Aug 2009 19:05:33 +0000 (12:05 -0700)]
xdemo/glxswapcontrol: Move get_framge_usage after the swap.

This fixes the problem that first frame would report bogus usage values.
Problem was caused because get_frame_usage returned data from previous buffer
swap.

Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
15 years agoxdemos/glxcontexts: Don't leak visual info when choosing visual again.
Pauli Nieminen [Mon, 3 Aug 2009 17:43:38 +0000 (10:43 -0700)]
xdemos/glxcontexts: Don't leak visual info when choosing visual again.

Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
15 years agoegl_softpipe: Add support for pbuffer surface.
Chia-I Wu [Mon, 3 Aug 2009 17:36:08 +0000 (11:36 -0600)]
egl_softpipe: Add support for pbuffer surface.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
15 years agoegl: Correct the default values of surface attributes.
Chia-I Wu [Mon, 3 Aug 2009 17:35:44 +0000 (11:35 -0600)]
egl: Correct the default values of surface attributes.

EGL_TEXTURE_FORMAT and EGL_TEXTURE_TARGET should default to
EGL_NO_TEXTURE.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
15 years agoegl: Make eglMakeCurrent more robust.
Chia-I Wu [Mon, 3 Aug 2009 17:35:14 +0000 (11:35 -0600)]
egl: Make eglMakeCurrent more robust.

Now that a current surface points back to its binding context, and a
current context points back to its binding thread, make sure there is no
dangling pointers.  This commit reworks eglMakeCurrent, adds more checks
to avoid stealing context or surfaces from another thread, and correctly
destroys unlinked context and surfaces.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
15 years agoegl: Replace IsBound by a pointer to the binding.
Chia-I Wu [Mon, 3 Aug 2009 17:34:37 +0000 (11:34 -0600)]
egl: Replace IsBound by a pointer to the binding.

IsBound tells if a context or surface is current.  What it does not tell
is, to which thread a context is current, or to which context a surface
is current.  This commit replaces IsBound by a pointer to the binding
thread or context.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
15 years agogl: upgrade wglext.h to version 15
Brian Paul [Mon, 3 Aug 2009 17:22:39 +0000 (11:22 -0600)]
gl: upgrade wglext.h to version 15

15 years agogl: upgrade glxext.h to version 23
Brian Paul [Mon, 3 Aug 2009 17:21:57 +0000 (11:21 -0600)]
gl: upgrade glxext.h to version 23

15 years agogl: upgrade glext.h to version 54
Brian Paul [Mon, 3 Aug 2009 17:20:40 +0000 (11:20 -0600)]
gl: upgrade glext.h to version 54

15 years agotgsi: report opcode name in addition to the number when translation fails
Brian Paul [Fri, 31 Jul 2009 16:23:52 +0000 (10:23 -0600)]
tgsi: report opcode name in addition to the number when translation fails

15 years agotgsi: added tgsi_get_opcode_name()
Brian Paul [Fri, 31 Jul 2009 16:23:09 +0000 (10:23 -0600)]
tgsi: added tgsi_get_opcode_name()

15 years agogallium: comments, reformatting
Brian Paul [Fri, 31 Jul 2009 15:30:56 +0000 (09:30 -0600)]
gallium: comments, reformatting

15 years agost/mesa: we don't support GL_NV_point_sprite (see comment)
Brian Paul [Mon, 3 Aug 2009 17:16:23 +0000 (11:16 -0600)]
st/mesa: we don't support GL_NV_point_sprite (see comment)

15 years agor600: add some missing pci ids
Alex Deucher [Mon, 3 Aug 2009 15:21:10 +0000 (11:21 -0400)]
r600: add some missing pci ids

15 years agor600: fix the build when RADEON_DEBUG_BO is set
Alex Deucher [Mon, 3 Aug 2009 07:12:56 +0000 (03:12 -0400)]
r600: fix the build when RADEON_DEBUG_BO is set

15 years agor600: fix r600SetTexOffset
Alex Deucher [Mon, 3 Aug 2009 06:28:22 +0000 (02:28 -0400)]
r600: fix r600SetTexOffset

We need to properly set up a fake bo for the texture override,
so add a new function to radeon_bo_legacy.c.  This could probably
be used on radeon/r200/r300 to unify the bo handling for
texture override.

compiz now works :)