Commit graph

39368 commits

Author SHA1 Message Date
Vinson Lee
e4189f2e2e gallivm: Remove LLVMOpaqueKindType case with llvm-3.0.
llvm-3.0svn r134829 removed LLVMOpaqueKindType from enum LLVMTypeKind in
include/llvm-c/Core.h.
2011-07-11 12:48:06 -07:00
Kenneth Graunke
7304909d65 glsl: Reject ambiguous function calls (multiple inexact matches).
According to the GLSL 1.20 specification, "it is a semantic error if
there are multiple ways to apply [implicit] conversions [...] such that
the call can be made to match multiple signatures."

Fixes a regression caused by 60eb63a855,
which implemented the wrong policy of finding a "closest" match.
However, this is not a revert, since the original code failed to
continue looking for an exact match once it found two inexact matches.

It's OK to have multiple inexact matches if there's also an exact match.

NOTE: This is a candidate for the 7.10 and 7.11 branches.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=38971
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
2011-07-11 10:53:28 -07:00
Kenneth Graunke
186e37c754 i965/gen7: Add support for gl_PointCoord.
This is exactly analogous to Eric's Gen6 change in commit
6861a70177.  His explanation:

"This is just like PointSprite overrides, but it's always on for that
 attribute."

Fixes glsl-fs-pointcoord and gtf/point_sprites.

Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>

NOTE: This is a candidate for the 7.11 branch.
2011-07-11 10:46:35 -07:00
Kenneth Graunke
147d010295 i965/gen7: Fix point sprite texture coordinate overrides.
This is exactly analogous to Eric's Gen6 change in commit
f304bb8a5d.  His explanation:

"We were assuming that the input attribute n to the FS was
 FRAG_ATTRIB_TEXn, which happened to be true often enough for our
 testcases."

Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>

NOTE: This is a candidate for the 7.11 branch.
2011-07-11 10:46:35 -07:00
Kenneth Graunke
5edb3ddf41 i965/gen7: Refactor SF setup a bit to handle overrides in one place.
This is exactly analogous to Eric's Gen6 change in commit
e7280b16d6.

Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>

NOTE: This is a candidate for the 7.11 branch.
2011-07-11 10:46:35 -07:00
Eric Anholt
f07cfebebe i965/gen4: Add a stub dumper for CC unit state, which is different from gen6.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2011-07-11 09:27:27 -07:00
Eric Anholt
f7f03fb588 i965/gen4: Add state dumping for unit state using state_batch_list[].
This is just barely more pretty-printing than we previously had, but
at least it doesn't leave out unit states in the log.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2011-07-11 09:27:27 -07:00
Eric Anholt
a1226bcd20 i965/gen6: Add state dumping for the VS constants.
This is quite a bit of spam, but I think it's useful to have in a full
INTEL_DEBUG=batch dump.  And a lot of this spam on glxgears is just
because we're awful at handling our constants :/

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2011-07-11 09:27:27 -07:00
Eric Anholt
6e17a01e42 i965/gen6: Add state dumping for the scissor packet.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2011-07-11 09:27:27 -07:00
Eric Anholt
93c7a5da11 i965: When dumping programs, dump the whole cache. But don't by default.
The previous brw_state_dump output was rather useless -- last used
program per batch, and just the hex.  Now we dump all programs (since
we don't know which were used), and disassemble them.  But that's a
ton of spam, and usually when looking into program contents we use
INTEL_DEBUG={vs,wm,misc,other} and when looking into state updates we
use INTEL_DEBUG=batch, so this dump usually just massively clutters up
the output.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2011-07-11 09:27:26 -07:00
Eric Anholt
6bbaa7c0e5 i965: Dump the binding table using state_batch_list[].
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2011-07-11 09:27:26 -07:00
Eric Anholt
13e82ece6d i965: Dump the surface, sampler, and sdc state using state_batch_list[].
Now, for example, INTEL_DEBUG=batch tex-border-1 shows all the
texturing state involved.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2011-07-11 09:27:26 -07:00
Eric Anholt
709a7af2af i965: Dump brw_state_batch data in an easier format for cross-referencing.
Now that we're using state base addresses for most things, we're less
interested in the absolute address of the state, and more in its
offset from the state base address (start of batchbuffer).  Also,
reorder the printout so it looks more like the batchbuffer dump.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2011-07-11 09:27:26 -07:00
Eric Anholt
d484667423 i965: Map the batch once for dumping all our state batch structs.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2011-07-11 09:27:26 -07:00
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
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
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
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
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