Marek Olšák
ed9955dc29
radeonsi: remove slab allocator for pipe_resource (used mainly for user buffers)
2012-05-13 14:32:57 +02:00
Marek Olšák
05ea705c7c
r600g: remove slab allocator for pipe_resource (used mainly for user buffers)
2012-05-13 14:32:57 +02:00
Marek Olšák
b2d6386086
r600g: handle R16G16B16_FLOAT and R32G32B32_FLOAT in translate_colorswap (EG)
2012-05-12 23:13:45 +02:00
Marek Olšák
b496136af8
gallium: remove user_buffer_create from the interface
...
Nothing uses it now.
2012-05-12 23:13:45 +02:00
Marek Olšák
1a840cc592
gallium/graw: stop using user_buffer_create
...
This is compile-tested.
2012-05-12 23:13:45 +02:00
Marek Olšák
685a28fd8a
gallium/util: remove unused parameter nr_vertex_buffers in util_draw_max_index
2012-05-12 23:13:45 +02:00
Francisco Jerez
b70736fa82
clover: Fix build on i386.
2012-05-12 19:43:06 +02:00
Francisco Jerez
fcab4d4a34
clover: Check the total work-group size provided to clEnqueueNDRangeKernel.
2012-05-12 19:43:01 +02:00
Christoph Bumiller
5c9bccc97e
clover, gallium: add PIPE_COMPUTE_CAP_MAX_THREADS_PER_BLOCK
...
This is not necessarily the product of MAX_BLOCK_SIZE[i].
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
2012-05-12 19:33:48 +02:00
Francisco Jerez
ec848d2730
r600g: Handle compute caps.
2012-05-12 19:17:18 +02:00
Francisco Jerez
4065639310
r300g: Handle compute caps.
2012-05-12 19:17:13 +02:00
José Fonseca
f96540847e
auxiliary/util: Ensure pipe_constant_buffer::user_buffer is initialized.
2012-05-12 17:23:52 +01:00
José Fonseca
7b49d4f05d
scons: Fix missing gbm symbols in st/egl.
2012-05-12 17:10:32 +01:00
José Fonseca
96e73cc4ae
targets/egl-static: Fix some missing symbols.
2012-05-12 17:10:32 +01:00
José Fonseca
fd687e06f0
trace: Fix pipe_context::clear dumping.
2012-05-12 17:10:31 +01:00
José Fonseca
b275bed549
trace: Fix pipe_shader_state dumping.
2012-05-12 17:10:31 +01:00
José Fonseca
e9efcd99d1
scons: Link r600_drm.so against libdrm-radeon
2012-05-12 17:10:31 +01:00
José Fonseca
9a23a69f45
trace: Match NULL context members.
2012-05-12 17:10:31 +01:00
Marek Olšák
7c799f8f6b
gallium/docs: remove documentation of redefine_user_buffer
2012-05-12 13:09:19 +02:00
Michel Dänzer
74b9ef83cf
radeonsi: Fixed point vertex formats aren't supported.
2012-05-12 12:27:10 +02:00
Michel Dänzer
24bc382010
radeonsi: Fixups for recent build infrastructure changes.
...
In particular for the pipe loader changes.
2012-05-12 12:12:21 +02:00
Dave Airlie
31a25dac98
r600g: setup COLOR1 for possible dual-src in the framebuffer bind
...
As pointed out by Marek, if we have only one cb, we may as well add this
single register write here rather than adding it in the draw loop.
Reviewed-by: Marek Olšák <maraeo@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-05-12 08:25:21 +01:00
Roy Spliet
e253ead78e
nv30: Silence pipe_cap warnings
...
Signed-off-by: Roy Spliet <r.spliet@student.tudelft.nl>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2012-05-12 12:42:48 +10:00
Roy Spliet
897d235132
nv30/shader: SSG, LIT only requires one source register
...
Fixes crashing due to assertion error
Signed-off-by: Roy Spliet <r.spliet@student.tudelft.nl>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2012-05-12 12:42:47 +10:00
Ben Skeggs
6660041483
nouveau/vieux: finish != flush, how about we do that..
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2012-05-12 12:42:47 +10:00
Marek Olšák
9d6b46b1cd
r300g/swtcl: move vertex buffer updates into set_vertex_buffers
2012-05-12 00:50:53 +02:00
Marek Olšák
735d0d93a7
r300g/swtcl: move index buffer updates from swtcl_draw_vbo into set_index_buffer
2012-05-12 00:50:53 +02:00
Marek Olšák
21b012d3b0
r300g/swtcl: malloc vertex and index buffers (don't use radeon DRM to get them)
...
Vertex and index buffers are never used by hardware, only by Draw.
SWTCL chipsets usually have very little memory, so this might help
with stability and reliability.
2012-05-12 00:50:53 +02:00
Marek Olšák
8a963d122d
r300g/swtcl: don't do stuff which is only for HWTCL
2012-05-12 00:50:52 +02:00
Marek Olšák
f808984f43
r300g: remove slab allocator for pipe_resource (used mainly for user buffers)
2012-05-12 00:50:52 +02:00
Marek Olšák
4fd60ad6da
r300g: remove user_buffer_create
2012-05-12 00:50:52 +02:00
Marek Olšák
bdba35befa
r300g: fix breakage after gallium-userbuf merge
2012-05-12 00:50:52 +02:00
Brian Paul
550de24c17
llvmpipe: add cast to silence warning
2012-05-11 16:16:11 -06:00
Andreas Betz
9d6e908f14
vega: fix 565 color unpacking bug
...
NOTE: This is a candidate for the 8.0 branch.
Signed-off-by: Brian Paul <brianp@vmware.com>
2012-05-11 16:13:14 -06:00
Brian Paul
93bcf7825d
mesa: add DEBUG_INCOMPLETE_TEXTURE, DEBUG_INCOMPLETE_FBO flags
...
Instead of having to hack the code to enable these debugging options,
set them through the MESA_DEBUG env var.
Reviewed-by: Eric Anholt <eric@anholt.net>
2012-05-11 16:13:14 -06:00
Brian Paul
014306578b
mesa: implement DEBUG_ALWAYS_FLUSH debug option
...
This flag has been around for a while but it wasn't actually used anywhere.
Now, setting this flag causes a glFlush() to be issued after each
drawing call (including glBegin/End, glDrawElements, glDrawArrays,
glDrawPixels, glCopyPixels and glBitmap).
2012-05-11 16:13:14 -06:00
Brian Paul
da35c2b38c
mesa: define DEBUG_SILENT flag, use in output_if_debug()
2012-05-11 16:13:14 -06:00
Brian Paul
88cd47187c
mesa: clean-up the debug/verbose flag setup code
...
Split the verbose and debug flag setup code into separate functions.
2012-05-11 16:13:14 -06:00
Brian Paul
443195bdf8
mesa: do FLUSH_VERTICES() in _mesa_flush/finish()
...
This was being done in the _mesa_Flush/Finish() calls but if there
was an internal call to _mesa_flush/finish() the FLUSH_VERTICES()
wouldn't happen. Looks like only the intel and radeon drivers made
such calls in MakeCurrent().
2012-05-11 16:13:14 -06:00
Brian Paul
1bc16bf98a
mesa: fix glMaterial / dlist bug
...
When glColorMaterial() is used to latch glColor commands to a material
attribute, glMaterial calls to change that material should become no-ops.
This failed to work properly when the glMaterial call was inside a
display list.
This removes the Material function from the vbo_attrib_tmp.h template
file. We have separate/different implementations for the "save" and
"exec" cases now.
NOTE: This is a candidate for the 8.0 branch.
2012-05-11 16:13:14 -06:00
Brian Paul
f272490546
mesa: fix/add error check in _mesa_ColorMaterial()
...
_mesa_material_bitmask() will record a GL error and return 0 if
face or mode are illegal. Return early in that case.
NOTE: This is a candidate for the 8.0 branch.
2012-05-11 16:13:14 -06:00
Tom Stellard
bcfc97dbf4
radeon/llvm: More comments and cleanups
2012-05-11 15:09:52 -04:00
José Fonseca
23c0d469e5
gallivm: Fix copy'n'paste typo bug translating CEIL opcode.
...
Trivial.
2012-05-11 16:44:42 +01:00
Marek Olšák
d3bab0c7be
r600g: assume DISCARD_WHOLE_RESOURCE is always used with WRITE
2012-05-11 17:36:11 +02:00
Marek Olšák
7435c04398
Merge branch 'master' of ssh://git.freedesktop.org/git/mesa/mesa
2012-05-11 16:42:20 +02:00
Marek Olšák
bb4c5d72d7
Merge branch 'gallium-userbuf'
...
Conflicts:
src/gallium/docs/source/screen.rst
src/gallium/drivers/nv50/nv50_state.c
src/gallium/include/pipe/p_defines.h
src/mesa/state_tracker/st_draw.c
2012-05-11 16:38:13 +02:00
Tom Stellard
4d11a6a0c7
radeon/llvm: Fix Evergreen/Cayman tablegen predicates
...
Some Evergreen/Cayman instructions were being enabled for SI.
2012-05-11 09:43:47 -04:00
José Fonseca
96956dc507
gallium/tgsi: s/TGSI_BUFFER/TGSI_TEXTURE_BUFFER/
...
For consistency.
Reviewed-by: Brian Paul <brianp@vmware.com>
2012-05-11 14:37:00 +01:00
José Fonseca
223831ca14
gallium/tgsi: Redefine the TGSI_TEXTURE_UNKNOWN texture target.
...
Some code relies on the existing of an invalid texture target. It seems
safer to bring it back than to deal with unintended consequences.
This partially reverts commit a4ebb04214 .
Reviewed-by: Brian Paul <brianp@vmware.com>
2012-05-11 14:36:20 +01:00
James Benton
11aa82cc0b
llvmpipe: Fix triangle bounding box calculation to be correctly inclusive or exclusive
...
Tested with custom rasterisation test tool added to piglit suite, reduced errors
Signed-off-by: José Fonseca <jfonseca@vmware.com>
2012-05-11 13:21:23 +01:00