mesa.git
15 years agomesa: initial bits for GL_EXT_vertex_array_bgra
Brian Paul [Fri, 23 Jan 2009 18:23:12 +0000 (11:23 -0700)]
mesa: initial bits for GL_EXT_vertex_array_bgra

15 years agoi965: whitespace changes and reformatting
Brian Paul [Fri, 16 Jan 2009 23:02:34 +0000 (16:02 -0700)]
i965: whitespace changes and reformatting

15 years agodocs: first 7.5 feature: GL_ARB_framebuffer_object
Brian Paul [Thu, 22 Jan 2009 22:51:12 +0000 (15:51 -0700)]
docs: first 7.5 feature: GL_ARB_framebuffer_object

15 years agoi965: enable GL_ARB_framebuffer_object
Brian Paul [Wed, 21 Jan 2009 18:49:59 +0000 (11:49 -0700)]
i965: enable GL_ARB_framebuffer_object

15 years agointel: add GL_EXT_framebuffer blit extension
Brian Paul [Thu, 22 Jan 2009 22:43:40 +0000 (15:43 -0700)]
intel: add GL_EXT_framebuffer blit extension

This functionality is required by GL_ARB_framebuffer_object.
For now, implement it in terms of glCopyPixels().  This will need to be
revisted though.

15 years agointel: remove/disable the "paired depth/stencil" code
Brian Paul [Thu, 22 Jan 2009 22:34:16 +0000 (15:34 -0700)]
intel: remove/disable the "paired depth/stencil" code

We only allow combined depth+stencil renderbuffers so the complicated code
for splitting and combining separate depth and stencil buffers is no longer
needed.

15 years agointel: asst clean-ups, simplifications in intel_draw_buffer()
Brian Paul [Thu, 22 Jan 2009 18:31:28 +0000 (11:31 -0700)]
intel: asst clean-ups, simplifications in intel_draw_buffer()

15 years agointel: remove unneeded call to ctx->Driver.DepthRange()
Brian Paul [Thu, 22 Jan 2009 18:15:37 +0000 (11:15 -0700)]
intel: remove unneeded call to ctx->Driver.DepthRange()

The preceeding call to intel_draw_buffer() does that.

15 years agoi965: disallow separate depth/stencil renderbuffers
Brian Paul [Thu, 22 Jan 2009 22:32:38 +0000 (15:32 -0700)]
i965: disallow separate depth/stencil renderbuffers

Take advantage of the GL_FRAMEBUFFER_UNSUPPORTED feature to disallow separate
depth and stencil renderbuffers; only allow combined depth/stencil buffers.

Next up: remove/simplify a bunch of the depth/stencil renderbuffer code.

Also: restore the previously disabled GL_DEPTH_COMPONENT16 case

15 years agoi965: minor reformatting
Brian Paul [Wed, 21 Jan 2009 23:29:10 +0000 (16:29 -0700)]
i965: minor reformatting

15 years agointel: plug in stub intel_validate_framebuffer() function
Brian Paul [Tue, 20 Jan 2009 22:30:22 +0000 (15:30 -0700)]
intel: plug in stub intel_validate_framebuffer() function

15 years agointel: inline some renderbuffer functions
Brian Paul [Thu, 22 Jan 2009 22:30:57 +0000 (15:30 -0700)]
intel: inline some renderbuffer functions

15 years agodemos: revamp the fbotexture.c demo
Brian Paul [Thu, 22 Jan 2009 22:25:10 +0000 (15:25 -0700)]
demos: revamp the fbotexture.c demo

Try making depth/stencil attachments in two different ways.
Check for GL errors and GL_FRAMEBUFFER_UNSUPPORTED status to be more robust.
Reorganize the code a bit to make it clearer.
Added -arb option to test GL_ARB_fbo's mixed renderbuffer sizes
Added -ds2 option to test GL_DEPTH_STENCIL_ATTACHMENT

15 years agodemos: updated FBO tests to for ARB_fbo
Brian Paul [Mon, 19 Jan 2009 23:12:17 +0000 (16:12 -0700)]
demos: updated FBO tests to for ARB_fbo

Some things that were not errors in EXT_fbo are errors in ARB_fbo.

15 years agomesa: enable ARB_fbo for s/w drivers
Brian Paul [Mon, 19 Jan 2009 23:14:39 +0000 (16:14 -0700)]
mesa: enable ARB_fbo for s/w drivers

15 years agomesa: avoid calling _mesa_test_framebuffer_completeness() more than needed
Brian Paul [Wed, 21 Jan 2009 23:28:38 +0000 (16:28 -0700)]
mesa: avoid calling _mesa_test_framebuffer_completeness() more than needed

When we change a FBO's attachments, set _Status=0.
Before using an FBO, check if status != GL_FRAMEBUFFER_COMPLETE.
Also, fix missing GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE status.

15 years agomesa: fix some renderbuffer/framebuffer delete semantics
Brian Paul [Wed, 21 Jan 2009 18:17:45 +0000 (11:17 -0700)]
mesa: fix some renderbuffer/framebuffer delete semantics

Need to unbind buffers if referenced by the current read/draw pointers when
being deleted.

15 years agomesa: add support for GL_DEPTH_STENCIL_ATTACHMENT point.
Brian Paul [Wed, 21 Jan 2009 18:06:11 +0000 (11:06 -0700)]
mesa: add support for GL_DEPTH_STENCIL_ATTACHMENT point.

Used to set both the depth and stencil attachment points to one renderbuffer
of texture.

15 years agomesa: additional FBO error checking for multisample-related things
Brian Paul [Tue, 20 Jan 2009 23:58:49 +0000 (16:58 -0700)]
mesa: additional FBO error checking for multisample-related things

Plus some new comments.

15 years agomesa: update Visual.samples field in _mesa_update_framebuffer_visual()
Brian Paul [Tue, 20 Jan 2009 23:53:29 +0000 (16:53 -0700)]
mesa: update Visual.samples field in _mesa_update_framebuffer_visual()

15 years agomesa: refactor glRenderbufferStorage(), glRenderbufferStorageMultisample() code
Brian Paul [Thu, 22 Jan 2009 22:19:56 +0000 (15:19 -0700)]
mesa: refactor glRenderbufferStorage(), glRenderbufferStorageMultisample() code

Use a common helper routine for both functions.

15 years agomesa: init MaxSamples = 0 (no multisampling)
Brian Paul [Tue, 20 Jan 2009 22:29:08 +0000 (15:29 -0700)]
mesa: init MaxSamples = 0 (no multisampling)

15 years agomesa: add ARB_framebuffer_object.xml to API_XML
Brian Paul [Tue, 20 Jan 2009 22:25:14 +0000 (15:25 -0700)]
mesa: add ARB_framebuffer_object.xml to API_XML

15 years agomesa: added GL_MAX_SAMPLES query for GL_ARB_fbo
Brian Paul [Tue, 20 Jan 2009 22:19:45 +0000 (15:19 -0700)]
mesa: added GL_MAX_SAMPLES query for GL_ARB_fbo

15 years agomesa: added NumSamples, MaxSamples for ARB_fbo
Brian Paul [Tue, 20 Jan 2009 22:17:57 +0000 (15:17 -0700)]
mesa: added NumSamples, MaxSamples for ARB_fbo

15 years agomesa: stub for _mesa_RenderbufferStorageMultisample()
Brian Paul [Thu, 22 Jan 2009 22:17:42 +0000 (15:17 -0700)]
mesa: stub for _mesa_RenderbufferStorageMultisample()

15 years agomesa: call fbo_incomplete() if driver marks FBO as incomplete (debug only)
Brian Paul [Tue, 20 Jan 2009 00:34:19 +0000 (17:34 -0700)]
mesa: call fbo_incomplete() if driver marks FBO as incomplete (debug only)

15 years agomesa: update update_framebuffer_size() for ARB_fbo and mixed renderbuffer sizes
Brian Paul [Thu, 22 Jan 2009 22:14:45 +0000 (15:14 -0700)]
mesa: update update_framebuffer_size() for ARB_fbo and mixed renderbuffer sizes

15 years agomesa: added ctx->Driver.ValidateFramebuffer() callback
Brian Paul [Thu, 22 Jan 2009 22:13:18 +0000 (15:13 -0700)]
mesa: added ctx->Driver.ValidateFramebuffer() callback

Called from the _mesa_test_framebuffer_completeness() function to give the
driver the chance to make a framebuffer as incomplete if it doesn't meet
some specific hardware restriction.

15 years agomesa: add new ARB_fbo queries, fix some error tests
Brian Paul [Thu, 22 Jan 2009 22:07:34 +0000 (15:07 -0700)]
mesa: add new ARB_fbo queries, fix some error tests

15 years agomesa: add new ColorEncoding and ComponentType to gl_renderbuffer
Brian Paul [Thu, 22 Jan 2009 22:07:10 +0000 (15:07 -0700)]
mesa: add new ColorEncoding and ComponentType to gl_renderbuffer

15 years agomesa: additional FBO/RB id error checking for ARB_fbo
Brian Paul [Thu, 22 Jan 2009 22:06:17 +0000 (15:06 -0700)]
mesa: additional FBO/RB id error checking for ARB_fbo

It's illegal to bind a FBO/RB id that didn't come from glGenRender/Framebuffer().

15 years agomesa: for ARB_fbo, lift restriction that all FBO attachments are same size and color...
Brian Paul [Thu, 22 Jan 2009 22:05:13 +0000 (15:05 -0700)]
mesa: for ARB_fbo, lift restriction that all FBO attachments are same size and color format

15 years agomesa: initial extension bits for GL_ARB_framebuffer_object
Brian Paul [Thu, 22 Jan 2009 22:04:11 +0000 (15:04 -0700)]
mesa: initial extension bits for GL_ARB_framebuffer_object

15 years agomesa: regenerated GL API files
Brian Paul [Thu, 22 Jan 2009 22:02:00 +0000 (15:02 -0700)]
mesa: regenerated GL API files

15 years agoglapi: include ARB_framebuffer_object.xml
Brian Paul [Thu, 22 Jan 2009 21:56:14 +0000 (14:56 -0700)]
glapi: include ARB_framebuffer_object.xml

15 years agoglapi: XML spec for GL_ARB_framebuffer_object
Brian Paul [Thu, 22 Jan 2009 21:55:20 +0000 (14:55 -0700)]
glapi: XML spec for GL_ARB_framebuffer_object

15 years agoglsl: call _mesa_write_shader_to_file(). Debug-only, disabled
Brian Paul [Thu, 22 Jan 2009 17:35:51 +0000 (10:35 -0700)]
glsl: call _mesa_write_shader_to_file().  Debug-only, disabled

15 years agoglsl: new _mesa_write_shader_to_file() function
Brian Paul [Thu, 22 Jan 2009 17:34:43 +0000 (10:34 -0700)]
glsl: new _mesa_write_shader_to_file() function

Used to log a shader to a file.  Includes shader source code, the info log
and generated GPU instructions.

15 years agoglsl: set shader->CompileStatus in _slang_compile()
Brian Paul [Thu, 22 Jan 2009 17:34:15 +0000 (10:34 -0700)]
glsl: set shader->CompileStatus in _slang_compile()

15 years agomesa: added _mesa_fprintf() wrapper
Brian Paul [Thu, 22 Jan 2009 17:32:08 +0000 (10:32 -0700)]
mesa: added _mesa_fprintf() wrapper

15 years agodocs: placeholder 7.5 release notes
Brian Paul [Thu, 22 Jan 2009 17:29:24 +0000 (10:29 -0700)]
docs: placeholder 7.5 release notes

15 years agomesa: master is open for new development, eventually will be Mesa 7.5
Brian Paul [Thu, 22 Jan 2009 17:22:55 +0000 (10:22 -0700)]
mesa: master is open for new development, eventually will be Mesa 7.5

15 years agodocs: skeleton 7.4 release notes file
Brian Paul [Thu, 22 Jan 2009 17:18:04 +0000 (10:18 -0700)]
docs: skeleton 7.4 release notes file

15 years agodocs: 7.3 md5 sums
Brian Paul [Thu, 22 Jan 2009 17:14:39 +0000 (10:14 -0700)]
docs: 7.3 md5 sums

15 years agomesa: set version to 7.3
Brian Paul [Thu, 22 Jan 2009 17:14:04 +0000 (10:14 -0700)]
mesa: set version to 7.3

15 years agodocs: set 7.3 release date
Brian Paul [Thu, 22 Jan 2009 16:59:04 +0000 (09:59 -0700)]
docs: set 7.3 release date

15 years agodocs: assorted updates, link fixes
Brian Paul [Thu, 22 Jan 2009 16:58:52 +0000 (09:58 -0700)]
docs: assorted updates, link fixes

15 years agoi915: Add decode for PS in batchbuffers.
Eric Anholt [Tue, 13 Jan 2009 20:50:38 +0000 (12:50 -0800)]
i915: Add decode for PS in batchbuffers.

15 years agoi965: Remove gratuitous whitespace in INTEL_DEBUG=wm output.
Eric Anholt [Fri, 9 Jan 2009 03:15:04 +0000 (19:15 -0800)]
i965: Remove gratuitous whitespace in INTEL_DEBUG=wm output.

15 years agoi965: Use _mesa_num_inst_src_regs() instead of keeping a copy of its contents.
Eric Anholt [Fri, 9 Jan 2009 03:00:10 +0000 (19:00 -0800)]
i965: Use _mesa_num_inst_src_regs() instead of keeping a copy of its contents.

15 years ago[intel] Remove remaining references to intel_wait_flips().
Kristian Høgsberg [Wed, 21 Jan 2009 16:47:01 +0000 (11:47 -0500)]
[intel] Remove remaining references to intel_wait_flips().

Oops.

15 years agowindows: fix output dir for glut project file
Thomas Henn [Wed, 21 Jan 2009 16:31:58 +0000 (09:31 -0700)]
windows: fix output dir for glut project file

15 years agoswrast: fix redundant texture application in affine_textured_triangle().
Brian Paul [Wed, 21 Jan 2009 16:05:02 +0000 (09:05 -0700)]
swrast: fix redundant texture application in affine_textured_triangle().

This function does simple texture mapping so disable normal texture mapping
before we call _swrast_write_rgba_span() so that we don't do it twice.

15 years agomesa: add some debug assertions to detect null current texture object pointers
Brian Paul [Wed, 21 Jan 2009 15:18:07 +0000 (08:18 -0700)]
mesa: add some debug assertions to detect null current texture object pointers

See bug #17895.  These assertions could be removed when this is resolved.

15 years agowindows: another round of VC8 project file updates
Karl Schultz [Wed, 21 Jan 2009 14:59:11 +0000 (07:59 -0700)]
windows: another round of VC8 project file updates

New static configs generate DLLs that do not have a dependency on the MSCVR*
DLL's.

15 years agoRevert "windows: new VC8 projects statically linked against libcmt"
Brian Paul [Wed, 21 Jan 2009 14:57:45 +0000 (07:57 -0700)]
Revert "windows: new VC8 projects statically linked against libcmt"

This reverts commit bbda892c551e7d3f2d94cc877cc6e80f8568fa99.

Static configs rolled into regular project files (in next commit).
Provided by Karl Schultz.

15 years agodocs: document glXMakeContextCurrent() and Windows fixes
Brian Paul [Tue, 20 Jan 2009 22:36:01 +0000 (15:36 -0700)]
docs: document glXMakeContextCurrent() and Windows fixes

15 years agoFix issues with glXMakeContextCurrent and glXMakeCurrentReadSGI
Ian Romanick [Tue, 20 Jan 2009 21:55:18 +0000 (13:55 -0800)]
Fix issues with glXMakeContextCurrent and glXMakeCurrentReadSGI

There were several bugs in the infrastructure for these two routines.

1. GLX_ALIAS was incorrectly used.  The function and its alias must be
identical!  glXMakeContextCurrent / glXMakeCurrentReadSGI and
MakeContextCurrent had different parameters.  This caused the last
parameter of MakeContextCurrent to get random values.

2. We based the implementation of glXMakeContextCurrent on the manual
page instead of the GLX spec.  The GLX spec says that
glXMakeContextCurrent can be passed a Window as a drawable.  When this
happens, it will behave just like glXMakeCurrentReadSGI or
glXMakeCurrent.

3. If there was a problem finding or creating the DRI drawable,
MakeContextCurrent would crash instead of returning an error.

This commit fixes all three issues, and fixes bug #18367 and bug #19625.

15 years ago[intel] Go back to using the typedef for the sarea struct
Timo Aaltonen [Tue, 20 Jan 2009 16:45:35 +0000 (11:45 -0500)]
[intel] Go back to using the typedef for the sarea struct

The upstream linux kernel headers and libdrm kernel headers disagree on the
tag name for the sarea struct: _drm_i915_sarea vs drm_i915_sarea.  They
both typedef it to drm_i915_sarea_t though, so just use that.

15 years agoRemove intel pageflipping support in its entirety.
Owain G. Ainsworth [Wed, 14 Jan 2009 01:14:32 +0000 (01:14 +0000)]
Remove intel pageflipping support in its entirety.

It's been broken and deprecated for a while, so it's time to die. This has the
wonderful benefit of cleaning up the code a fair amount; making it marginally
less twisty.

I'm unsure if the for loops in IntelWindowMoved are still needed.

15 years agoglsl: silence unused var warnings
Brian Paul [Tue, 20 Jan 2009 16:21:32 +0000 (09:21 -0700)]
glsl: silence unused var warnings

15 years agomesa: silence uninitialized var warnings
Brian Paul [Tue, 20 Jan 2009 16:20:41 +0000 (09:20 -0700)]
mesa: silence uninitialized var warnings

15 years agomesa: silence compiler warning at -O2
Brian Paul [Tue, 20 Jan 2009 16:17:12 +0000 (09:17 -0700)]
mesa: silence compiler warning at -O2

15 years agomesa: bump version to 7.3-rc3
Brian Paul [Tue, 20 Jan 2009 16:13:41 +0000 (09:13 -0700)]
mesa: bump version to 7.3-rc3

15 years agomesa: inlclude whole windows/VC8/ directory in tarballs
Brian Paul [Tue, 20 Jan 2009 16:13:06 +0000 (09:13 -0700)]
mesa: inlclude whole windows/VC8/ directory in tarballs

15 years agowindows: new VC8 projects statically linked against libcmt
Thomas Henn [Tue, 20 Jan 2009 16:05:18 +0000 (09:05 -0700)]
windows: new VC8 projects statically linked against libcmt

15 years agowindows: more VC8 project file updates
Karl Schultz [Tue, 20 Jan 2009 15:58:40 +0000 (08:58 -0700)]
windows: more VC8 project file updates

Make some compiler flags per-file.
Remove driverfuncs.c from osmesa project.

15 years agoAdd a comment about _tnl_emit_indexed_vertices_to_buffer.
Thomas Hellstrom [Tue, 20 Jan 2009 10:40:51 +0000 (11:40 +0100)]
Add a comment about _tnl_emit_indexed_vertices_to_buffer.

15 years agotnl: Add a utility to emit indexed vertices to a DMA buffer.
Thomas Hellstrom [Tue, 20 Jan 2009 10:15:57 +0000 (11:15 +0100)]
tnl: Add a utility to emit indexed vertices to a DMA buffer.

This utility is useful for hardware that doesn't support HW index buffers.
It's a bit inefficient but appears to give a substantial performance gain,
as we can emit tri strips that would otherwise be split into triangles.

15 years agoFix store texel for argb4444.
Thomas Hellstrom [Tue, 20 Jan 2009 10:13:38 +0000 (11:13 +0100)]
Fix store texel for argb4444.

15 years agoFix store texel for argb8888_rev.
Thomas Hellstrom [Tue, 20 Jan 2009 10:13:05 +0000 (11:13 +0100)]
Fix store texel for argb8888_rev.

15 years agoAdd RGBA4444 and RGBA5551 texture formats.
Thomas Hellstrom [Tue, 20 Jan 2009 10:12:17 +0000 (11:12 +0100)]
Add RGBA4444 and RGBA5551 texture formats.

15 years agodri1: Add a macro to validate two dri drawables in one go.
Thomas Hellstrom [Tue, 20 Jan 2009 10:07:10 +0000 (11:07 +0100)]
dri1: Add a macro to validate two dri drawables in one go.

Dri drivers often may validate first a write drawable and then a read
drawable ("readable"). However, the hardware lock may be unlocked when
validating the readable, causing the write drawable status to be stale.

Drivers should use this macro instead when validating two drawables.

15 years agomesa: fix build of stand-alone glslcompiler driver
Brian Paul [Tue, 13 Jan 2009 21:39:55 +0000 (14:39 -0700)]
mesa: fix build of stand-alone glslcompiler driver

15 years agotests: test pseudo-XOR blend mode.
Brian Paul [Mon, 19 Jan 2009 19:03:17 +0000 (12:03 -0700)]
tests: test pseudo-XOR blend mode.

GL_XOR logicop mode can be approximated with blending by computing 1 - dst.
Here's a couple test programs for that.

15 years agodri: add fake front definitions
Alan Hourihane [Mon, 19 Jan 2009 15:40:30 +0000 (15:40 +0000)]
dri: add fake front definitions

15 years agowindows: updated VC8 project files
Thomas Henn [Mon, 19 Jan 2009 15:23:22 +0000 (08:23 -0700)]
windows: updated VC8 project files

15 years agoglx: gcc 2.95 build fix (move declaration before code)
Brian Paul [Sun, 18 Jan 2009 16:59:07 +0000 (09:59 -0700)]
glx: gcc 2.95 build fix (move declaration before code)

Adapted from patch by Matthieu Herbb <matthieu.herrb@laas.fr>

15 years agoi965: fix polygon culling bug when rendering to a texture/FBO
Brian Paul [Fri, 16 Jan 2009 20:33:19 +0000 (13:33 -0700)]
i965: fix polygon culling bug when rendering to a texture/FBO

Since we use an inverted viewport transformation for render to texture, that
inverts front/back polygon orientation.
Now glCullFace(GL_FRONT / GL_BACK) works correctly.

15 years agointel: added intel_rendering_to_texture() helper function.
Brian Paul [Fri, 16 Jan 2009 20:31:04 +0000 (13:31 -0700)]
intel: added intel_rendering_to_texture() helper function.

When we're rendering to textures we have to invert the viewport transformation.
This helper cleans up that test and can be used elsewhere...

15 years agomesa: remove GL_DEPTH_TEST + no depth buffer test
Brian Paul [Fri, 16 Jan 2009 20:25:41 +0000 (13:25 -0700)]
mesa: remove GL_DEPTH_TEST + no depth buffer test

One could enable depth testing before binding an FBO that has a depth buffer
so this test is no longer useful or correct.

15 years agoglsl: fix broken sampler assignments
Brian Paul [Fri, 16 Jan 2009 16:30:37 +0000 (09:30 -0700)]
glsl: fix broken sampler assignments

15 years agoi915: fallback on transfer mode
Xiang, Haihao [Fri, 16 Jan 2009 08:06:33 +0000 (16:06 +0800)]
i915: fallback on transfer mode

15 years agowindows: updated VC8 project file
Karl Schultz [Thu, 15 Jan 2009 18:32:47 +0000 (11:32 -0700)]
windows: updated VC8 project file

15 years agowindows: updated mesa.def file
Karl Schultz [Thu, 15 Jan 2009 14:05:15 +0000 (07:05 -0700)]
windows: updated mesa.def file

15 years agoglsl: use _mesa_sprintf()
Brian Paul [Thu, 15 Jan 2009 14:04:52 +0000 (07:04 -0700)]
glsl: use _mesa_sprintf()

15 years agoglsl: move declaration before code
Brian Paul [Thu, 15 Jan 2009 14:04:36 +0000 (07:04 -0700)]
glsl: move declaration before code

15 years agomesa: check frambuffer complete status before rendering
Alan Hourihane [Thu, 15 Jan 2009 11:51:39 +0000 (11:51 +0000)]
mesa: check frambuffer complete status before rendering

15 years agomesa: bump version to 7.3-rc2
Brian Paul [Thu, 15 Jan 2009 00:01:35 +0000 (17:01 -0700)]
mesa: bump version to 7.3-rc2

15 years agoglsl: fix comment
Brian Paul [Wed, 14 Jan 2009 19:35:43 +0000 (12:35 -0700)]
glsl: fix comment

15 years agoglsl: minor clean-up for rect sampler test
Brian Paul [Wed, 14 Jan 2009 19:33:06 +0000 (12:33 -0700)]
glsl: minor clean-up for rect sampler test

15 years agor300: work-around FRAG_BIT_FOGC warning/error
Brian Paul [Wed, 14 Jan 2009 23:48:54 +0000 (16:48 -0700)]
r300: work-around FRAG_BIT_FOGC warning/error

See bug 17929.

Fog doesn't actually work, but the often complained about warning is
silenced.

15 years agoi965: asst. fixes, work-arounds for FBOs and render to texture
Brian Paul [Wed, 14 Jan 2009 23:42:19 +0000 (16:42 -0700)]
i965: asst. fixes, work-arounds for FBOs and render to texture

OpenGL allows mixing and matching depth and stencil renderbuffers in
framebuffer objects while the hardware really only supports interleaved
depth/stencil buffers.  This makes for some tricky buffer management.

An extra wrinkle is the situation where the user allocates a 16bpp depth
texture or renderbuffer then tries to render to it along with a stencil
buffer.  We'd have to promote the 16bpp Z values to 24-bit Z values and
mix in the stencil values to setup the depth/stencil renderbuffer.

There's no support for that now, so always allocate 32bpp depth textures/
renderbuffers for now.

15 years agoi965: fix incorrect renderbuffer DataType assignment
Brian Paul [Wed, 14 Jan 2009 23:28:55 +0000 (16:28 -0700)]
i965: fix incorrect renderbuffer DataType assignment

15 years agoi965: fix some FBO depth/stencil assertions
Brian Paul [Wed, 14 Jan 2009 23:26:41 +0000 (16:26 -0700)]
i965: fix some FBO depth/stencil assertions

15 years agointel: SW fallback maps texture images, not texture coordinates
Ian Romanick [Wed, 14 Jan 2009 20:46:06 +0000 (12:46 -0800)]
intel: SW fallback maps texture images, not texture coordinates

15 years agoglsl: propagate pragma info down into compiler from preprocessor
Brian Paul [Wed, 14 Jan 2009 19:16:00 +0000 (12:16 -0700)]
glsl: propagate pragma info down into compiler from preprocessor

15 years agowindows: remove reference to swizzle.c file
Brian Paul [Wed, 14 Jan 2009 19:07:25 +0000 (12:07 -0700)]
windows: remove reference to swizzle.c file

15 years agoglsl: simplify IR storage for samplers
Brian Paul [Wed, 14 Jan 2009 18:58:45 +0000 (11:58 -0700)]
glsl: simplify IR storage for samplers

Don't overload the Size field with the texture target, to avoid confusion.