Marek Olšák
aac4bae986
r300g: fix crash when adding a new relocation
...
No idea why it's so hard to reproduce.
Broken with: c35572352e
Thanks to Toni Spets for assistance.
2011-04-08 21:34:16 +02:00
Marek Olšák
ff3d7ce201
r300g: emit US_FORMAT on R520 only
2011-04-08 20:07:01 +02:00
Eric Anholt
9634318290
i965/fs: Remove broken optimization for live intervals in loops.
...
The theory here was to detect a temporary variable used within a loop,
and avoid considering it live across the entire loop. However, it was
overeager and failed when the first definition of the variable
appeared within the loop but was only conditionally defined.
Fixes glsl-fs-loop-redundant-condition.
2011-04-08 08:04:00 -10:00
Marek Olšák
a0d154dc13
u_vbuf_mgr: fix crash with unsupported vertex format in hw VBOs
2011-04-08 19:31:26 +02:00
Marek Olšák
1329d94334
r300g: fix crash with hyperz
...
r300_update_hyperz_state is no longer required to be called here.
2011-04-08 13:27:14 +02:00
Henri Verbeet
1bcdc1e319
r300g: Properly take the sampler view's first_level into account when sampling.
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Marek Olšák <maraeo@gmail.com>
2011-04-08 04:47:37 +02:00
Fabian Bieler
08070cead0
llvmpipe: Take the sampler view's first_level into account when sampling.
2011-04-08 04:47:04 +02:00
Henri Verbeet
9acdd7739b
softpipe: Take the sampler view's first_level into account when sampling.
...
Signed-off-by: Brian Paul <brianp@vmware.com>
2011-04-08 04:45:38 +02:00
Henri Verbeet
79db70bd8a
st/mesa: Clamp min_lod to the max miplevel as well.
...
Otherwise min_lod can potentially be larger than the clamped max_lod. The
code that follows will swap min_lod and max_lod in that case, resulting in a
max_lod larger than MAX_LEVEL.
Signed-off-by: Brian Paul <brianp@vmware.com>
2011-04-08 04:45:03 +02:00
Henri Verbeet
2ecb73379e
st/mesa: Set samplers views' first_level.
...
Base level and min LOD aren't equivalent. In particular, min LOD has no
effect on image array selection for magnification and non-mipmapped
minification.
Signed-off-by: Brian Paul <brianp@vmware.com>
2011-04-08 04:44:21 +02:00
Marek Olšák
7984c2d42d
r300g: do not advertise R16F and RG16F on DRM < 2.8.0
2011-04-08 04:38:36 +02:00
Marek Olšák
10ea8567f4
r300g: fix texturing with sizes > 2048 on r500
2011-04-08 04:38:36 +02:00
Marek Olšák
9d5de0fcb6
r300g: add 'radeon: ' prefix to error messages in winsys
2011-04-08 04:38:36 +02:00
Marek Olšák
6eff8479af
mesa: fix dstRowDiff computation in RGTC texstore functions
...
Copied from libtxc_dxtn, this fixes NPOT RGTC1 textures with r300g.
I also did the same for RGTC2.
2011-04-08 04:38:36 +02:00
Kristian Høgsberg
55a629cee5
egl_dri2.c: Open drm device with O_CLOEXEC
...
Not a good fd to leak.
2011-04-07 18:27:56 -04:00
Henri Verbeet
09eff39a58
r600g: Unreference framebuffer state on context destruction.
...
Signed-off-by: Henri Verbeet <hverbeet@gmail.com>
2011-04-07 22:29:56 +02:00
Henri Verbeet
3e15fa86d7
r600g: Use symbolic names for NUMBER_TYPE.
...
Signed-off-by: Henri Verbeet <hverbeet@gmail.com>
2011-04-07 22:29:56 +02:00
Brian Paul
0da2a22ba6
docs: replace llvmpipe/README with docs/llvmpipe.html
2011-04-07 13:56:45 -06:00
Brian Paul
06613b7b3a
llvmpipe: document issue with LLVM 2.8 and earlier with AVX
2011-04-07 13:43:00 -06:00
Brian Paul
ef2c80f506
util: add cpu detection for sse 4.2 and avx
2011-04-07 13:41:52 -06:00
Brian Paul
1e105741f1
util: simplify bit shifting in util_cpu_detect()
2011-04-07 13:41:52 -06:00
Brian Paul
6638b4a590
svga: another tweak to adjust_x term (use -0.5)
2011-04-07 11:25:46 -06:00
José Fonseca
584d1e2309
mesa: Update _ElementSize in a few more places.
2011-04-07 13:35:25 +01:00
José Fonseca
0c501bacef
mesa/st: Fix user buffer size computation when stride is zero.
...
Although for GL a zero stride means tightly packed elements, Mesa
internally uses zero strides for constant arrays.
Therefore user buffers need to be defined from
buffer_offset + src_offset + min_index*stride
to
buffer_offset + src_offset + max_index*stride + elem_size
Simplifying the later with (max_index + 1)*stride will give zero
sized buffers.
This change also aggregates the st_context's info about user buffers
into a single array.
2011-04-07 12:20:06 +01:00
Brian Paul
204991bf5d
mesa: Update _ElementSize.
2011-04-07 12:20:06 +01:00
José Fonseca
23d75936a7
mesa/st: Prevent 'end' < 'start' in vbo_exec_DrawRangeElementsBaseVertex()
...
We adjust 'end' to fit into _MaxElement, but that may result into a 'start'
value bigger than 'end' being passed downstream, causing havoc.
This could be seen with arb_robustness_draw-vbo-bounds, due to an
application bug.
2011-04-07 12:20:06 +01:00
José Fonseca
aa61b15351
mesa/st: Handle feedback draw when VBO offsets are not sorted in ascending order.
...
Simply port the same logic from setup_interleaved_attribs().
Avoids overflow in mustpass.c and feedback.c conform tests.
2011-04-07 12:20:06 +01:00
Zou Nan hai
66b66295d0
i965: clear global offset to zero in m0.2 for VS DP read.
...
Signed-off-by: Zou Nan hai <nanhai.zou@intel.com>
2011-04-07 21:07:57 +08:00
Vinson Lee
8800a798d1
mesa: Fix allocation size of extension_indices array.
...
Reviewed-by: Brian Paul <brianp@vmware.com>
2011-04-06 16:14:22 -07:00
Brian Paul
95368f25c1
mesa: fix error message text
2011-04-06 16:52:48 -06:00
Brian Paul
7b8830d81d
mesa: consolidate code in _mesa_update_array_max_element()
2011-04-06 16:52:48 -06:00
Ian Romanick
de4cb19a1c
mesa: Add link to 7.10.2 release notes
2011-04-06 13:46:58 -07:00
Ian Romanick
130872a2a6
docs: update news.html with 7.10.2 release
...
(cherry picked from commit b0866f6cfd )
2011-04-06 13:46:37 -07:00
Ian Romanick
2c8ba760fa
Import 7.10.2 release notes from 7.10 branch
2011-04-06 13:46:20 -07:00
Julian Adams
3f8455d07b
r600g: Fix non-independent blend state.
...
This fixes piglit fbo/fbo-drawbuffers-blend-add.
Signed-off-by: Henri Verbeet <hverbeet@gmail.com>
2011-04-06 21:16:40 +02:00
Brian Paul
122275760d
mesa: init/release the default texture buffer object
2011-04-06 13:00:14 -06:00
Brian Paul
53245fffc0
mesa: fix popping of texture state for GL_TEXTURE_BUFFER
...
Fixes http://bugs.freedesktop.org/show_bug.cgi?id=36032
2011-04-06 12:45:30 -06:00
Brian Paul
c1f4b2364f
mesa: TEXTURE_BUFFER fix-up
...
Fixes http://bugs.freedesktop.org/show_bug.cgi?id=36033
2011-04-06 12:33:30 -06:00
Tom Stellard
cd2857fae1
r300/compiler: Don't try to convert RGB to Alpha in full instructions
...
Note: This is a candidate for the 7.10 branch.
2011-04-06 00:31:53 -07:00
José Fonseca
740282b417
mesa: Recognize MESA_VERBOSE=all as shortcut for all debug options.
2011-04-06 08:27:53 +01:00
José Fonseca
dcbc9be38e
draw: Fix thinko in debug warnings.
2011-04-06 08:27:52 +01:00
José Fonseca
c0f6bfd489
trace: Correct/cleanup.
...
Observe the actual type hierarchy and polymorphism of sampler views and
surface state.
s/texture/resource/
etc.
2011-04-06 08:26:44 +01:00
José Fonseca
391f7147e7
Revert "trace: Dump blend state as a binary blob."
...
This reverts commit dcdf94c87c .
No retrace support anymore, so human-legible representation of blend
state is much more useful than a blob.
2011-04-06 08:26:04 +01:00
José Fonseca
afeaf1771d
st/python: Remove bindings, and all its dependencies.
...
Because:
- bindings are not fully automatic, and they are broken most of the time
- unit tests/samples can be written in C on top of graw
- tracing/retracing is more useful at API levels with stable ABIs such as
GL, producing traces that cover more layers of the driver stack and and
can be used for regression testing
2011-04-06 08:26:04 +01:00
Brian Paul
14b574433c
swrast: simplify assertion to silence warning
2011-04-05 20:18:46 -06:00
Brian Paul
874a2c0b7d
mesa: core support for GL_ARB_texture_buffer_object
...
No GLSL or driver support yet.
2011-04-05 19:02:09 -06:00
Brian Paul
9a77e285e8
mesa: regenerated API entrypoints for GL_ARB_texture_buffer_object
2011-04-05 18:50:39 -06:00
Brian Paul
13ba6b7369
mesa: API spec for GL_ARB_texture_buffer_object
2011-04-05 18:48:26 -06:00
Vinson Lee
622ee08e51
scons: Generate empty git_sha1.h for all platforms.
...
Fixes MinGW SCons build.
2011-04-05 15:34:30 -07:00
Kenneth Graunke
b4dfb7473e
ir_to_mesa: Use gl_register_file enum type rather than 'int'.
...
src_reg already used this; make dst_reg use it too.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2011-04-05 15:31:58 -07:00