Eric Anholt
00f07b33ec
i965: Move the new gen6 state structs to using state_batch_list[].
...
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2011-07-11 09:27:26 -07:00
Eric Anholt
fbfeff73f3
i965: Move the SF VP state dump to using the state_batch_list[]
...
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2011-07-11 09:27:26 -07:00
Eric Anholt
2a8d744345
i965: Move CLIP VP state dump to using the state_batch_list[].
...
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2011-07-11 09:27:26 -07:00
Eric Anholt
65c6de000e
i965: Track the brw_state_batch() data while under INTEL_DEBUG=batch.
...
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2011-07-11 09:27:26 -07:00
Eric Anholt
d375df220f
i965: Add a type argument to brw_state_batch().
...
I want to make brw_state_dump.c handle more than just the last
statechange, so I want to keep track of what's in the batch state. By
using AUB file numbering for most of these packets, this may be
reusable for aub dumping.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2011-07-11 09:27:26 -07:00
Eric Anholt
35d5d5df72
intel: Make our context structure be a ralloc context.
...
This will let me hang cached compiler structs off of the context
without having to worry about cleaning them up at destroy time.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2011-07-11 09:27:26 -07:00
Brian Paul
be8551220c
configs: do not let llvm-config define NDEBUG in debug builds
...
Following the examples of Marek and Jose for autoconf and scons.
2011-07-11 10:07:43 -06:00
Eric Anholt
a166720f2d
ir_to_mesa: typo fix in a comment.
2011-07-11 08:58:37 -07:00
Eric Anholt
46a7639174
i965: Fix fp-dst-aliasing-[12].vpfp.
...
There's no pretty way to avoid the overwriting of the src operands, so
just use a temporary destination and rely on the MOV optimization.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2011-07-11 08:58:37 -07:00
Eric Anholt
e3ea5bc08e
i965: Fix fp-lit-src-equals-dst.
...
We were stomping over the source for the body of the LIT instruction
when doing the MOV of 1.0 to the uninteresting channels.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2011-07-11 08:58:37 -07:00
Marek Olšák
be039d296d
configure.ac: do not let llvm-config define NDEBUG in debug builds
...
Re-enables assertions in src/mesa.
2011-07-11 17:32:06 +02:00
José Fonseca
acf82194ce
scons: Filter-out NDEBUG define from llvm-config.
...
Based on a similar autoconf change from Marek.
2011-07-11 15:38:06 +01:00
Brian Paul
d60880db35
glx: add a few missing glXChooseFBConfig() attributes
...
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=38842
NOTE: This is a candidate for the 7.11 branch.
2011-07-11 08:02:49 -06:00
Brian Paul
bb0d5cae00
glext.h: update to version 71
2011-07-11 08:02:48 -06:00
Marek Olšák
6c53d75e7d
mesa: fix assertion failure in delete_wrapper
2011-07-11 15:32:34 +02:00
Marek Olšák
ceb04b32ba
mesa: add a comment in _mesa_test_formats
2011-07-11 15:18:14 +02:00
Marek Olšák
e134eaa2c5
mesa: fix assertion failure in _mesa_test_formats
...
Z32_FLOAT_X24S8 has DataType of GL_NONE.
2011-07-11 14:32:32 +02:00
Marek Olšák
12265d26dd
Revert "WIP r600g: depth_buffer_float renderbuffer support on evergreen"
...
This reverts commit 91a52dae97 .
Pushed accidentally.
2011-07-11 04:17:45 +02:00
Marek Olšák
dc9d789d1b
r600g: more valgrind fixes
2011-07-11 04:13:35 +02:00
Marek Olšák
daf6604435
r600g: zero memory of ioctl parameters
...
Fixes valgrind warning.
2011-07-11 04:01:06 +02:00
Marek Olšák
01f48a979d
mesa: implement packing of DEPTH_STENCIL & FLOAT_32_UNSIGNED_INT_24_8_REV combo
...
Tested with the new piglit fbo-depthstencil test.
2011-07-11 03:04:17 +02:00
Marek Olšák
91a52dae97
WIP r600g: depth_buffer_float renderbuffer support on evergreen
2011-07-10 21:47:20 +02:00
Marek Olšák
d1214cca08
swrast: fix depth/stencil blits when there's no colorbuffer
...
NOTE: This is a candidate for the 7.10 and 7.11 branches.
2011-07-10 21:47:20 +02:00
Marek Olšák
83478e5d59
mesa: return early if mask is cleared to zero in BlitFramebuffer
...
From ARB_framebuffer_object:
If a buffer is specified in <mask> and does not exist in both the
read and draw framebuffers, the corresponding bit is silently
ignored.
2011-07-10 21:47:20 +02:00
Marek Olšák
3414447011
docs: update GL3 status
2011-07-10 21:41:17 +02:00
Marek Olšák
89954723bf
r600g: depth_buffer_float support on r600-r700
2011-07-10 21:41:17 +02:00
Marek Olšák
d9ab6712cc
gallium/util: handle Z32F_FLOAT_S8X24_USCALED in pipe_tile_raw_to_rgba
...
And make pipe_put_tile_rgba_format no-op like the other Z formats.
2011-07-10 21:41:17 +02:00
Marek Olšák
e860cb64db
gallium/util: implement software Z32F_S8X24 depth-stencil clear
2011-07-10 21:41:17 +02:00
Marek Olšák
8ff6f90c3f
gallium/util: implement pack functions for Z32F and Z32F_S8X24
2011-07-10 21:41:17 +02:00
Marek Olšák
e517e5ac7c
st/mesa: implement read/draw/copypixels for Z32F and Z32F_S8X24
2011-07-10 21:41:17 +02:00
Marek Olšák
adea7ea0bc
st/mesa: initial ARB_depth_buffer_float support
2011-07-10 21:41:17 +02:00
Marek Olšák
ba15e8260e
mesa: implement depth/stencil renderbuffer wrapper accessors for Z32F_X24S8
...
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2011-07-10 21:41:17 +02:00
Marek Olšák
bde6a04458
mesa: implement generatemipmap for GL_FLOAT_32_UNSIGNED_INT_24_8_REV
...
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2011-07-10 21:41:17 +02:00
Marek Olšák
b2f087cd87
mesa: implement texstore for DEPTH32F_STENCIL8
...
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2011-07-10 21:41:17 +02:00
Marek Olšák
bc878c7f8b
mesa: implement texstore for DEPTH_COMPONENT32F
...
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2011-07-10 21:41:17 +02:00
Marek Olšák
bfb63b7d62
mesa: implement depth unpacking for GL_FLOAT_32_UNSIGNED_INT_24_8_REV
...
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2011-07-10 21:41:17 +02:00
Marek Olšák
ec6fbbe36e
mesa: implement stencil unpacking for GL_FLOAT_32_UNSIGNED_INT_24_8_REV
...
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2011-07-10 21:41:17 +02:00
Marek Olšák
4843c7b24a
mesa: implement texfetch functions for depth_buffer_float
...
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2011-07-10 21:41:16 +02:00
Marek Olšák
1165280cbd
mesa: initial ARB_depth_buffer_float support
...
Using GL_NONE as DataType of Z32_FLOAT_X24S8, not sure what I should put there.
The spec says the type is n/a.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2011-07-10 21:41:16 +02:00
Vadim Girlin
f0a7e28e29
r600g: LIT: clamp negative src.y to 0
...
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=39083
Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com>
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-07-10 13:19:38 -04:00
Marek Olšák
d644a50dc3
st/dri: remove unused variables
2011-07-10 17:40:38 +02:00
Chia-I Wu
95f9e118fe
st/egl: fix linking errors
...
Add symbols referenced by src/glx/dri2.c.
2011-07-10 15:11:15 +08:00
Kenneth Graunke
440224ab73
intel: Recognize all depth formats in get_teximage_readbuffer.
...
The existing code was missing GL_DEPTH_COMPONENT32, resulting in it
wrongly returning the color buffer instead of the depth buffer.
Fixes an issue in PlaneShift 0.5.7 when casting spells. The game calls
CopyTexSubImage2D on buffers with a GL_DEPTH_COMPONENT32 internal
format, which (prior to this patch) resulted in an attempt to copy
ARGB8888 to X8_Z24.
Instead of adding the missing enumeration directly, convert the code to
use _mesa_is_depth_format() and _mesa_is_depthstencil_format() as these
should catch any newly added depth formats in the future.
NOTE: This is a candidate for the 7.10 and 7.11 branches.
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
2011-07-09 10:37:42 -07:00
Henri Verbeet
7e591111bf
r600g: Get rid of some superfluous braces.
...
Signed-off-by: Henri Verbeet <hverbeet@gmail.com>
2011-07-09 18:12:50 +02:00
Henri Verbeet
2e53725bbc
r600g: Check for Evergreen chip class instead of Cedar family in r600_context_flush().
...
Signed-off-by: Henri Verbeet <hverbeet@gmail.com>
2011-07-09 18:12:50 +02:00
Henri Verbeet
2b5b289a57
r600g: Store the chip class directly in r600_bc.
...
Instead of deriving it from the family again.
Signed-off-by: Henri Verbeet <hverbeet@gmail.com>
2011-07-09 18:12:50 +02:00
Henri Verbeet
89dc31a28d
r600g: Replace the CHIPREV_* defines with the chip_class enum.
...
Signed-off-by: Henri Verbeet <hverbeet@gmail.com>
2011-07-09 18:12:50 +02:00
Henri Verbeet
4f7dfd8ad3
r600g: Get rid of the superfluous family field from r600_shader.
...
Signed-off-by: Henri Verbeet <hverbeet@gmail.com>
2011-07-09 18:12:50 +02:00
Henri Verbeet
b3b946b0ab
r600g: Store the chip class in r600_pipe_context.
...
Signed-off-by: Henri Verbeet <hverbeet@gmail.com>
2011-07-09 18:12:50 +02:00
Henri Verbeet
949896b82f
r600g: Fix the type of the family field in r600_pipe_context.
...
Signed-off-by: Henri Verbeet <hverbeet@gmail.com>
2011-07-09 18:12:50 +02:00