mesa.git
15 years agomesa: s/_IMAGE_NEW_TRANSFER_STATE/_MESA_NEW_TRANSFER_STATE/ to be more consistant...
Brian Paul [Tue, 10 Feb 2009 22:43:05 +0000 (15:43 -0700)]
mesa: s/_IMAGE_NEW_TRANSFER_STATE/_MESA_NEW_TRANSFER_STATE/ to be more consistant with other flags

15 years agomesa: fix/change state validation order for program/texture state
Brian Paul [Tue, 10 Feb 2009 22:35:25 +0000 (15:35 -0700)]
mesa: fix/change state validation order for program/texture state

Program state needs to be updated before texture state since the later depends
on the former.

Fixes piglit texgen failure.  The second time through the modes (press 't'
three times) we disable the fragment program and return to conventional texture
mode.  State validation failed here because update_texture() saw stale fragment
program state.

15 years agodemos: remove OSMESA stuff from Makefile
Brian [Sat, 7 Feb 2009 23:10:21 +0000 (16:10 -0700)]
demos: remove OSMESA stuff from Makefile

15 years agoautogen: Make sure MAKEFLAGS is not set before running autoreconf
Benjamin Close [Tue, 10 Feb 2009 01:24:27 +0000 (11:54 +1030)]
autogen: Make sure MAKEFLAGS is not set before running autoreconf

Without this the "w" flag may be set which causes the version
to be incorrectly to be obtains in configure.ac causing configure
to fail miserably

15 years agomesa: avoid setting texObj->_Complete = GL_FALSE when there's no state change
Brian Paul [Mon, 9 Feb 2009 20:58:32 +0000 (13:58 -0700)]
mesa: avoid setting texObj->_Complete = GL_FALSE when there's no state change

Avoid a little bit of unneeded state validation and fixes a bug where the
texture complete flags was set to false, but we didn't signal _NEW_TEXTURE.

Fixes piglit tex1d-2dborder failure.

15 years agomesa: add no-change testing for a few more texture parameters
Brian Paul [Mon, 9 Feb 2009 20:50:36 +0000 (13:50 -0700)]
mesa: add no-change testing for a few more texture parameters

15 years agoswrast: use ASSIGN_4V() macro
Brian Paul [Mon, 9 Feb 2009 19:43:09 +0000 (12:43 -0700)]
swrast: use ASSIGN_4V() macro

15 years agomesa: replace _mesa_unreference_framebuffer() with _mesa_reference_framebuffer()
Brian Paul [Mon, 9 Feb 2009 15:31:28 +0000 (08:31 -0700)]
mesa: replace _mesa_unreference_framebuffer() with _mesa_reference_framebuffer()

15 years agomesa: replace _mesa_unreference_framebuffer() with _mesa_reference_framebuffer()
Brian Paul [Mon, 9 Feb 2009 15:30:55 +0000 (08:30 -0700)]
mesa: replace _mesa_unreference_framebuffer() with _mesa_reference_framebuffer()

15 years agoi965: need to disable current shader, if any, in intel_clear_tris()
Brian Paul [Mon, 9 Feb 2009 19:12:09 +0000 (12:12 -0700)]
i965: need to disable current shader, if any, in intel_clear_tris()

Fixes bad background in all the progs/glsl/ tests.

15 years agomesa: autoconf fixes for OS X
Siddhartha Chaudhuri [Mon, 9 Feb 2009 14:58:38 +0000 (07:58 -0700)]
mesa: autoconf fixes for OS X

See bug report 17566.

15 years agomesa: rework _mesa_reference_framebuffer() to look like _mesa_reference_renderbuffer()
Brian Paul [Mon, 9 Feb 2009 14:55:08 +0000 (07:55 -0700)]
mesa: rework _mesa_reference_framebuffer() to look like _mesa_reference_renderbuffer()

_mesa_unreference_framebuffer() is deprecated since _mesa_reference_framebuffer(ptr, NULL)
can be used instead.

15 years agomesa: minor fixes to incomplete texture debug code
Brian Paul [Sat, 7 Feb 2009 18:50:24 +0000 (11:50 -0700)]
mesa: minor fixes to incomplete texture debug code

15 years agomesa: debug code for printing info about textures, writing teximages to disk
Brian Paul [Sat, 7 Feb 2009 18:49:52 +0000 (11:49 -0700)]
mesa: debug code for printing info about textures, writing teximages to disk

15 years agomesa: code refactoring: move texcombine code into update_tex_combine()
Brian Paul [Sat, 7 Feb 2009 18:40:20 +0000 (11:40 -0700)]
mesa: code refactoring: move texcombine code into update_tex_combine()

15 years agomesa: minor clean-ups, remove unneeded conditional
Brian Paul [Sat, 7 Feb 2009 18:21:44 +0000 (11:21 -0700)]
mesa: minor clean-ups, remove unneeded conditional

15 years agomesa: fix logic error in computing enableBits in update_texture_state()
Brian Paul [Sat, 7 Feb 2009 18:20:08 +0000 (11:20 -0700)]
mesa: fix logic error in computing enableBits in update_texture_state()

If we had a vertex shader but no fragment shader (i.e. fixed function) we
didn't get the right enabled texture targets.

Fixes blank/white texture problem.

15 years agomesa: fix tnl->render_inputs_bitset setup for fragment program texcoords
Brian Paul [Fri, 6 Feb 2009 17:48:38 +0000 (10:48 -0700)]
mesa: fix tnl->render_inputs_bitset setup for fragment program texcoords

Handle the case where there's no per-vertex texcoords but the fragment shader
needs texcoords.

Fixes piglit shaders/fp-generic/dph test.

15 years agoswrast: return (0,0,0,1) when sampling incomplete textures, not (0,0,0,0)
Brian Paul [Fri, 6 Feb 2009 17:47:31 +0000 (10:47 -0700)]
swrast: return (0,0,0,1) when sampling incomplete textures, not (0,0,0,0)

Fixes piglit shaders/fp-incomplete-tex test.

15 years agoglsl: new MESA_GLSL env var for GLSL debugging features
Brian Paul [Fri, 6 Feb 2009 17:21:36 +0000 (10:21 -0700)]
glsl: new MESA_GLSL env var for GLSL debugging features

Replaces the VERBOSE_GLSL, VERBOSE_GLSL_DUMP flags which only worked in debug
builds.  MESA_GLSL will work both in debug and non-debug builds.
Also add facility to dump glUniform() calls to stdout.

15 years agomesa: tweak output of _mesa_write_shader_to_file()
Brian Paul [Fri, 6 Feb 2009 17:20:33 +0000 (10:20 -0700)]
mesa: tweak output of _mesa_write_shader_to_file()

Enclose GPU code in comments to the file can be re-fed back into GLSL compiler.

15 years agoRevert "mesa: meaningless whitespace change to see if git's working (ignore)"
Brian Paul [Fri, 6 Feb 2009 17:00:34 +0000 (10:00 -0700)]
Revert "mesa: meaningless whitespace change to see if git's working (ignore)"

This reverts commit b2e779988eeb595187933fe2122d86f8ccfe059c.

I didn't mean to push this stuff yet.  I'm having a bad git day...

15 years agomesa: meaningless whitespace change to see if git's working (ignore)
Brian Paul [Fri, 6 Feb 2009 16:57:28 +0000 (09:57 -0700)]
mesa: meaningless whitespace change to see if git's working (ignore)

15 years agoradeon: remove include that breaks build in !OLD_PACKET path
Dave Airlie [Fri, 6 Feb 2009 14:18:34 +0000 (00:18 +1000)]
radeon: remove include that breaks build in !OLD_PACKET path

this path isn't enabled by default in any case.

15 years agomesa: remove oddball linux-directfb-install makefile rule
Brian Paul [Thu, 5 Feb 2009 15:41:27 +0000 (08:41 -0700)]
mesa: remove oddball linux-directfb-install makefile rule

It's probably not needed since the 'make install' rules were overhauled last year.

15 years agomesa: minor Makefile improvement for versioning
Brian Paul [Thu, 5 Feb 2009 15:39:10 +0000 (08:39 -0700)]
mesa: minor Makefile improvement for versioning

15 years agoglsl: use _slang_var_swizzle() in a few places to simplify the code.
Brian Paul [Thu, 5 Feb 2009 00:40:51 +0000 (17:40 -0700)]
glsl: use _slang_var_swizzle() in a few places to simplify the code.

15 years agoglsl: remove unused prototype
Brian Paul [Thu, 5 Feb 2009 00:37:20 +0000 (17:37 -0700)]
glsl: remove unused prototype

15 years agoglsl: replace assertion with conditional in _slang_pop_var_table()
Brian Paul [Thu, 5 Feb 2009 00:32:07 +0000 (17:32 -0700)]
glsl: replace assertion with conditional in _slang_pop_var_table()

We were hitting the assertion when we ran out of registers, which can happen.

Also, add some additional assertions and freshen up some comments.

15 years agomesa: more info in error messages
Brian Paul [Wed, 4 Feb 2009 21:22:12 +0000 (14:22 -0700)]
mesa: more info in error messages

15 years agoswrast: add minor comments
Brian Paul [Wed, 4 Feb 2009 17:45:04 +0000 (10:45 -0700)]
swrast: add minor comments

15 years agoRevert "docs: document new MESA_GLX_FORCE_DIRECT env var for the Xlib driver"
Brian Paul [Wed, 4 Feb 2009 15:43:11 +0000 (08:43 -0700)]
Revert "docs: document new MESA_GLX_FORCE_DIRECT env var for the Xlib driver"

This reverts commit 2f51be75c55f69dc3e09036d6fd12f808f5a5028.

15 years agomesa: make Xlib glXIsDirect() always return True
Brian Paul [Wed, 4 Feb 2009 15:42:30 +0000 (08:42 -0700)]
mesa: make Xlib glXIsDirect() always return True

15 years agodemos: remove unused function
Brian Paul [Wed, 4 Feb 2009 15:38:43 +0000 (08:38 -0700)]
demos: remove unused function

15 years agodemos: silence uninitialized var warning
Brian Paul [Wed, 4 Feb 2009 15:38:28 +0000 (08:38 -0700)]
demos: silence uninitialized var warning

15 years agomesa: minor error msg improvement
Brian Paul [Tue, 3 Feb 2009 23:33:12 +0000 (16:33 -0700)]
mesa: minor error msg improvement

15 years agointel: Decode MI operands using specific length masks
Chris Wilson [Wed, 4 Feb 2009 20:59:22 +0000 (20:59 +0000)]
intel: Decode MI operands using specific length masks

The MI opcodes have different variable length masks, so use an operand
specific mask to decode the length.

15 years agointel: Correct decoding of 3DSTATE_PIXEL_SHADER_CONSTANTS
Chris Wilson [Wed, 4 Feb 2009 20:25:08 +0000 (20:25 +0000)]
intel: Correct decoding of 3DSTATE_PIXEL_SHADER_CONSTANTS

A couple of minor typos that proclaimed an error in the wrong command, and
failed to offset the mask.

15 years agointel: Fix fbo_firecube regression with FBconfigs change.
Eric Anholt [Wed, 4 Feb 2009 18:27:13 +0000 (10:27 -0800)]
intel: Fix fbo_firecube regression with FBconfigs change.

By selecting a 4444 texture format due to a bad test, we hit the
intel_update_wrapper error path, and despite the appearance of error handling
in it and its callers, the desired behavior (software fallback) doesn't occur.

15 years agor300: make the macros safe. add missing parenthesis.
Maciej Cencora [Wed, 4 Feb 2009 12:26:09 +0000 (13:26 +0100)]
r300: make the macros safe. add missing parenthesis.

15 years agor300: Fix EXP2 fog
Maciej Cencora [Sat, 24 Jan 2009 13:58:17 +0000 (14:58 +0100)]
r300: Fix EXP2 fog

15 years agointel: Fix commented-out glViewport in intel_meta_set_passthrough_transform.
Eric Anholt [Wed, 4 Feb 2009 04:04:24 +0000 (20:04 -0800)]
intel: Fix commented-out glViewport in intel_meta_set_passthrough_transform.

Too much commit -a while debugging.

15 years agoswrast: Add support for x8r8g8b8 fbconfig.
Eric Anholt [Wed, 4 Feb 2009 03:29:11 +0000 (19:29 -0800)]
swrast: Add support for x8r8g8b8 fbconfig.

This lets swrast produce an fbconfig suitable for the root visual now that
the server's not allowing mismatched fbconfigs.

15 years agodocs: document new MESA_GLX_FORCE_DIRECT env var for the Xlib driver
Brian Paul [Tue, 3 Feb 2009 17:13:22 +0000 (10:13 -0700)]
docs: document new MESA_GLX_FORCE_DIRECT env var for the Xlib driver

15 years agoxlib: use MESA_GLX_FORCE_DIRECT to make glXIsDirect() always return True
Brian Paul [Tue, 3 Feb 2009 17:12:51 +0000 (10:12 -0700)]
xlib: use MESA_GLX_FORCE_DIRECT to make glXIsDirect() always return True

Some apps won't run w/ indirect rendering contexts.
Also, consolidate some context-init code in new init_glx_context() function.

15 years agomesa: simplify delete_wrapper()
Brian Paul [Tue, 3 Feb 2009 16:21:32 +0000 (09:21 -0700)]
mesa: simplify delete_wrapper()

15 years agodemos: modify bufferobj.c to exercise interleaved vertex arrays
Brian Paul [Tue, 3 Feb 2009 22:17:26 +0000 (15:17 -0700)]
demos: modify bufferobj.c to exercise interleaved vertex arrays

Also, put colors before vertex positions, and place the data at a 40-byte
offset from the start of the buffer.

15 years agodemos: update multitex.c GLSL demo to use vertex arrays or glVertex-mode
Brian Paul [Mon, 2 Feb 2009 23:50:45 +0000 (16:50 -0700)]
demos: update multitex.c GLSL demo to use vertex arrays or glVertex-mode

Press 'a' to toggle drawing mode.

15 years agoutil: added more functions to extfuncs.h
Brian Paul [Mon, 2 Feb 2009 23:47:51 +0000 (16:47 -0700)]
util: added more functions to extfuncs.h

15 years agomesa: fix GLSL issue preventing use of all 16 generic vertex attributes
Brian Paul [Mon, 2 Feb 2009 23:33:08 +0000 (16:33 -0700)]
mesa: fix GLSL issue preventing use of all 16 generic vertex attributes

Only 15 actually worked before since we always reserved generic[0] as an
alias for vertex position.

The case of vertex attribute 0 is tricky.  The spec says that there is no
aliasing between generic vertex attributes 0..MAX_VERTEX_ATTRIBS-1 and the
conventional attributes.  But it also says that calls to glVertexAttrib(0, v)
are equivalent to glVertex(v).  The distinction seems to be in glVertex-mode
versus vertex array mode.

So update the VBO code so that if the shader uses generic[0] but not gl_Vertex,
route the attribute data set with glVertex() to go to shader input generic[0].

No change needed for the glDrawArrays/Elements() path.

This is a potentially risky change so regressions are possible.  All the usual
tests seem OK though.

15 years agoglsl: update program->InputsRead when referencing input attributes
Brian Paul [Mon, 2 Feb 2009 23:29:08 +0000 (16:29 -0700)]
glsl: update program->InputsRead when referencing input attributes

This info will be used in the linker for allocating generic vertex attribs.

15 years agomesa: fix stand-alone glslcompiler
Brian Paul [Mon, 2 Feb 2009 19:24:58 +0000 (12:24 -0700)]
mesa: fix stand-alone glslcompiler

15 years agomesa: make _mesa_fprint_program_opt() non-static
Brian Paul [Mon, 2 Feb 2009 19:24:41 +0000 (12:24 -0700)]
mesa: make _mesa_fprint_program_opt() non-static

15 years agoi965: Remove brw->attribs now that we can just always look in the GLcontext.
Eric Anholt [Fri, 30 Jan 2009 22:32:23 +0000 (14:32 -0800)]
i965: Remove brw->attribs now that we can just always look in the GLcontext.

15 years agoi965: Delete old metaops code now that there are no remaining consumers.
Eric Anholt [Fri, 30 Jan 2009 22:18:03 +0000 (14:18 -0800)]
i965: Delete old metaops code now that there are no remaining consumers.

15 years agointel: replace custom metaops clear with generic.
Eric Anholt [Thu, 29 Jan 2009 23:49:30 +0000 (15:49 -0800)]
intel: replace custom metaops clear with generic.

No real-world impact on performance seen.  Even glxgears seems to be, if
anything, happier.

15 years agodri2: Avoid round-tripping on DRI2GetBuffers for the same set of buffers.
Eric Anholt [Fri, 30 Jan 2009 21:23:12 +0000 (13:23 -0800)]
dri2: Avoid round-tripping on DRI2GetBuffers for the same set of buffers.

We only wanted to request when asked for the same set of buffers when a resize
has happened.  We can just watch the protocol stream for a ConfigureNotify
and flag to do it then.

This is about a 5% win from doing two glViewport()s per frame in openarena.

15 years agomesa: move code after decls. Fixes Window build failure.
Brian Paul [Mon, 2 Feb 2009 14:48:10 +0000 (07:48 -0700)]
mesa: move code after decls.  Fixes Window build failure.

15 years agoglxgears: No, really. Fix the dyslexia.
Ian Romanick [Sun, 1 Feb 2009 19:54:42 +0000 (11:54 -0800)]
glxgears: No, really.  Fix the dyslexia.

15 years agointel: Correct FBconfig color masks with DRI2. Fail at copy and paste.
Eric Anholt [Sat, 31 Jan 2009 18:32:34 +0000 (10:32 -0800)]
intel: Correct FBconfig color masks with DRI2.  Fail at copy and paste.

This still leaves us with a broken depth 32 visual, but now it's the server's
visual setup that's at fault.

15 years agoBuild dri.pc during the build rather than the install process.
Eric Anholt [Fri, 30 Jan 2009 23:56:01 +0000 (15:56 -0800)]
Build dri.pc during the build rather than the install process.

In a normal build system this is generated by configure.

15 years agomesa: more display list cleanups
Brian [Sat, 31 Jan 2009 19:10:41 +0000 (12:10 -0700)]
mesa: more display list cleanups

Remove some unneeded fields.  Rename some function parameters.

15 years agomesa: display list clean-ups
Brian [Sat, 31 Jan 2009 18:57:22 +0000 (11:57 -0700)]
mesa: display list clean-ups

Rename some structs and fields to be more consistant with the rest of mesa.

15 years agomesa: minor comments, clean-ups
Brian [Sat, 31 Jan 2009 18:39:28 +0000 (11:39 -0700)]
mesa: minor comments, clean-ups

15 years agomesa: remove remnant of GL_SGIX_depth_texture
Brian [Sat, 31 Jan 2009 18:22:16 +0000 (11:22 -0700)]
mesa: remove remnant of GL_SGIX_depth_texture

15 years agoi965: bump texture limit to 4kx4k
Keith Packard [Sat, 31 Jan 2009 05:51:32 +0000 (21:51 -0800)]
i965: bump texture limit to 4kx4k

Rendering and textures are limited to 8kx8k, but mesa limits things to
4kx4k, and magic guard band stuff may break on 8kx8k drawing. This is safe
though, and makes compiz work on bigger screens.

Signed-off-by: Keith Packard <keithp@keithp.com>
15 years agomesa: simplify the _mesa_get_proxy_tex_image() function
Brian Paul [Fri, 30 Jan 2009 22:51:58 +0000 (15:51 -0700)]
mesa: simplify the _mesa_get_proxy_tex_image() function

15 years agomesa: fix incorrect call to clear_teximage_fields() in _mesa_TexImage2D()
Brian Paul [Fri, 30 Jan 2009 22:50:43 +0000 (15:50 -0700)]
mesa: fix incorrect call to clear_teximage_fields() in _mesa_TexImage2D()

Fixes failed assertion / segfault for particular proxy texture tests.

15 years agointel: more debug info
Brian Paul [Fri, 30 Jan 2009 16:58:02 +0000 (09:58 -0700)]
intel: more debug info

15 years agoi965: formatting, comments, whitespace clean-ups
Brian Paul [Fri, 30 Jan 2009 16:50:26 +0000 (09:50 -0700)]
i965: formatting, comments, whitespace clean-ups

15 years agoswrast: replace RENDER_START/FINISH macros with inline functions
Brian Paul [Thu, 29 Jan 2009 23:05:39 +0000 (16:05 -0700)]
swrast: replace RENDER_START/FINISH macros with inline functions

15 years agoswrast: replace macro with inline function
Brian Paul [Thu, 29 Jan 2009 22:56:19 +0000 (15:56 -0700)]
swrast: replace macro with inline function

15 years agointel: remove unused RenderToTexture field
Brian Paul [Thu, 29 Jan 2009 22:40:43 +0000 (15:40 -0700)]
intel: remove unused RenderToTexture field

15 years agoi915: updated render to texture/fbo test
Brian Paul [Thu, 29 Jan 2009 22:40:21 +0000 (15:40 -0700)]
i915: updated render to texture/fbo test

15 years agoFix dyslexia.
Ian Romanick [Fri, 30 Jan 2009 22:55:42 +0000 (14:55 -0800)]
Fix dyslexia.

15 years agoglxgears: Log a message if synched to vblank
Ian Romanick [Fri, 30 Jan 2009 22:43:03 +0000 (14:43 -0800)]
glxgears: Log a message if synched to vblank

Tries to use either GLX_MESA_swap_control or GLX_SGI_video_sync to
detect whether the display is synchronized to the vertical blank.  If
it detects this, a message will be printed.  HOPEFULLY this will
prevent some of the bug reports such as "glxgears only gets 59.7fps.
What's wrong with my driver?"

15 years agomesa: add missing _mesa_reference_texobj() calls for texture array targets
Brian Paul [Fri, 30 Jan 2009 22:34:55 +0000 (15:34 -0700)]
mesa: add missing _mesa_reference_texobj() calls for texture array targets

15 years agomesa: remove incorrect refcounting adjustment in adjust_buffer_object_ref_counts()
Brian Paul [Fri, 30 Jan 2009 22:24:13 +0000 (15:24 -0700)]
mesa: remove incorrect refcounting adjustment in adjust_buffer_object_ref_counts()

Fixes bug 19835.  However, a more elaborate fix should be implemented someday
which uses proper reference counting for gl_array_object.

15 years agointel: If we're doing a depth clear with tris, do color with it.
Eric Anholt [Fri, 30 Jan 2009 19:24:04 +0000 (11:24 -0800)]
intel: If we're doing a depth clear with tris, do color with it.

This is a 10% win on the ever-important glxgears not-a-benchmark.

15 years agoi915: Only call CalcViewport from DrawBuffers instead of Viewport.
Eric Anholt [Fri, 30 Jan 2009 00:45:08 +0000 (16:45 -0800)]
i915: Only call CalcViewport from DrawBuffers instead of Viewport.

This saves an inadvertent round-trip to the X Server on DrawBuffers, which was
hurting some metaops.

15 years agointel: Expose more FBconfigs in the 3D driver.
Eric Anholt [Thu, 29 Jan 2009 22:57:49 +0000 (14:57 -0800)]
intel: Expose more FBconfigs in the 3D driver.

We can support any combination of (a8r8g8b8, x8r8g8b8, r5g6b5) x (z0,z24,z24s8)
on either class of chipsets.  The only restriction is no mixing bpp when also
mixing tiling.  This shouldn't be occurring currently.

15 years agoRemove stale symlinks to intel/intel_depthstencil.c
Ian Romanick [Fri, 30 Jan 2009 21:25:48 +0000 (13:25 -0800)]
Remove stale symlinks to intel/intel_depthstencil.c

15 years agoautoconf: Use include-fixed directory with makedepend on newer GCC
Dan Nicholson [Fri, 30 Jan 2009 18:52:09 +0000 (10:52 -0800)]
autoconf: Use include-fixed directory with makedepend on newer GCC

On newer GCC releases, the compiler's headers have been split between
the include and include-fixed directories. Add both if the directories
exist.

Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
Signed-off-by: Julien Cristau <jcristau@debian.org>
15 years agointel: remove unused intel_depthstencil.[ch]
Brian Paul [Thu, 29 Jan 2009 22:07:32 +0000 (15:07 -0700)]
intel: remove unused intel_depthstencil.[ch]

15 years agointel: remove unused #includes
Brian Paul [Thu, 29 Jan 2009 22:06:55 +0000 (15:06 -0700)]
intel: remove unused #includes

15 years agomesa: allow glFramebufferTexture1/2/3D(target = GL_READ/DRAW_FRAMEBUFFER)
Brian Paul [Thu, 29 Jan 2009 22:01:09 +0000 (15:01 -0700)]
mesa: allow glFramebufferTexture1/2/3D(target = GL_READ/DRAW_FRAMEBUFFER)

This is part of GL_EXT_framebuffer_blit and GL_ARB_framebuffer_obbject.

15 years agointel: formatting clean-ups
Brian Paul [Thu, 29 Jan 2009 21:57:31 +0000 (14:57 -0700)]
intel: formatting clean-ups

15 years agointel: fix check for Y orientation in span functions.
Brian Paul [Thu, 29 Jan 2009 21:57:16 +0000 (14:57 -0700)]
intel: fix check for Y orientation in span functions.

15 years agoi965: use bitfields in brw_sf_unit_key struct
Brian Paul [Thu, 29 Jan 2009 18:10:56 +0000 (11:10 -0700)]
i965: use bitfields in brw_sf_unit_key struct

15 years agointel: remove unused intel_rendering_to_texture()
Brian Paul [Thu, 29 Jan 2009 18:07:55 +0000 (11:07 -0700)]
intel: remove unused intel_rendering_to_texture()

15 years agoi965: fix render to FBO/texture orientation bugs
Brian Paul [Thu, 29 Jan 2009 18:07:14 +0000 (11:07 -0700)]
i965: fix render to FBO/texture orientation bugs

Anytime we're not rendering to the default/window FBO, need to invert
rendering, not just when rendering to a texture.  Otherwise, if a FBO
consists of a mix of textures and renderbuffers the up/down orientation
was inconsistant.

Fixes shadowtex.c bad rendering.

15 years agomesa: fix a render to texture FBO validation bug
Brian Paul [Thu, 29 Jan 2009 16:20:18 +0000 (09:20 -0700)]
mesa: fix a render to texture FBO validation bug

When glTexImage() is called we need to re-validate any FBOs that point to
the texture (i.e. render-to-texture) since changing the texture's size/format
will effect FBO completeness.

We don't keep a list of all FBOs rendering into each texture (which would be
a bit messy) so we check all FBOs in existance.  To optimize this, the
gl_texture_object->_RenderToTexture flag is used to avoid checking textures
that have never been used as renderbuffers.  So, we only walk over all FBOs
(there's usually only a few) when glTexImage() modifies a RTT texture.

Fixes a bug seen in shadowtex.c when toggling packed depth/stencil mode.

15 years agointel: Fix up some extension string issues
Ian Romanick [Wed, 28 Jan 2009 07:44:18 +0000 (23:44 -0800)]
intel: Fix up some extension string issues

Move the remaining extension string enables to intel_extensions.c.
Make sure that GL_NV_texture_env_combine4 is not enabled on i830.

15 years agoMake GLX_SGIX_pbuffer mandatory
Ian Romanick [Wed, 28 Jan 2009 03:12:24 +0000 (19:12 -0800)]
Make GLX_SGIX_pbuffer mandatory

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
15 years agoMake GL_ARB_draw_buffers mandatory
Ian Romanick [Wed, 28 Jan 2009 03:10:43 +0000 (19:10 -0800)]
Make GL_ARB_draw_buffers mandatory

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
15 years agoMake GL_{EXT,SUN}_multi_draw_arrays and GL_IBM_multimode_draw_arrays mandatory
Ian Romanick [Wed, 28 Jan 2009 02:16:51 +0000 (18:16 -0800)]
Make GL_{EXT,SUN}_multi_draw_arrays and GL_IBM_multimode_draw_arrays mandatory

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
15 years agoMake GL_ARB_vertex_buffer_object mandatory
Ian Romanick [Wed, 28 Jan 2009 02:04:12 +0000 (18:04 -0800)]
Make GL_ARB_vertex_buffer_object mandatory

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
15 years agoMake GL_ARB_multisample mandatory
Ian Romanick [Wed, 28 Jan 2009 01:50:45 +0000 (17:50 -0800)]
Make GL_ARB_multisample mandatory

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
15 years agoMake GL_ARB_texture_compression mandatory
Ian Romanick [Wed, 28 Jan 2009 01:36:03 +0000 (17:36 -0800)]
Make GL_ARB_texture_compression mandatory

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
15 years agomesa: remove GL_SGIX_shadow, GL_SGIX_shadow_ambient and GL_SGIX_depth_texture
Brian Paul [Wed, 28 Jan 2009 23:49:28 +0000 (16:49 -0700)]
mesa: remove GL_SGIX_shadow, GL_SGIX_shadow_ambient and GL_SGIX_depth_texture

Everyone should be using the newer/better ARB versions of these extensions.