Dave Airlie
738aa29289
r600g: setup basic loop consts on r600 + evergreen.
...
this sets up a single loop constant like r600c does.
2010-10-01 16:06:31 +10:00
Dave Airlie
7777c997e0
r600g: only set the Z export if shader exports it.
2010-10-01 16:06:30 +10:00
Dave Airlie
539a2978ed
r600g: flush SH cache on constant change on evergreen
2010-10-01 14:43:02 +10:00
Dave Airlie
b67aa5311f
r600g: fix evergreen draw-buffers
...
just a typo in the register headers.
2010-10-01 14:24:14 +10:00
Dave Airlie
14c95bb4ee
r600g: add cb flushing for extra buffers + depth buffer on r600/evergreen
2010-10-01 14:05:02 +10:00
Dave Airlie
ac225c76a6
r600g: sync vertex/texture cache on resources on evergreen
...
this gets rid of lots of the instability on evergreen,
which isn't surprising since it really broken not to flush caches.
2010-10-01 14:04:32 +10:00
Dave Airlie
d662195f00
r600g: fixup vertex format picking.
...
there are some vertex formats defined in r600c not in the docs.
2010-10-01 13:36:56 +10:00
Dave Airlie
e973221538
r600g: add assembler support for other vtx fetch fields.
...
this shouldn't change behaviour, just push the choice of what
to do out to the shader.
2010-10-01 13:36:56 +10:00
Dave Airlie
35cfe286d6
r600g: realign evergreen code with r600 code.
...
fixes segfault in depth-tex-modes-glsl and OA startup.
2010-10-01 11:15:13 +10:00
Dave Airlie
5eccdc62b9
r600g: add reloc for evergreen color attrib
...
we'll need this for color tiling on evergreen.
2010-10-01 10:52:09 +10:00
Dave Airlie
40ccb235d6
r600g: drop depth quirk on evergreen
...
none of the EG cards need the quirk.
2010-10-01 10:30:17 +10:00
Dave Airlie
05d1d86907
r600g: add winsys support for CTL constants.
...
These need to be emitted, we also need them to do proper vtx start,
instead of abusing index offset.
2010-10-01 10:30:16 +10:00
Dave Airlie
084c29baed
r600g: fix evergreen depth flushing.
...
although evergreen can apparantly sample direct from 24-bit,
just make it work with the current method for now.
2010-10-01 10:17:20 +10:00
Dave Airlie
7ae4da8056
r600g: use Elements macro instead of manual sizeofs
2010-10-01 10:17:20 +10:00
Brian Paul
66992463ac
draw: check for null sampler pointers
...
http://bugs.freedesktop.org/show_bug.cgi?id=30516
2010-09-30 16:42:17 -06:00
Brian Paul
542d6cb1b8
gallivm: added some comments
2010-09-30 16:42:17 -06:00
John Doe
40181aef60
r600g: keep a mapping around for each bo
...
Save a lot of call into the kernel and thus improve performances.
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-09-30 17:53:36 -04:00
John Doe
dde1391cc9
r600g: don't double count dirty block
...
This avoid to overcount the number of dwords we need and
thus avoid maximazation of cs buffer use.
Signed-off-by: Jerome Glisse <jglisse@redhat.com
2010-09-30 17:38:18 -04:00
Jerome Glisse
113f1cdfce
evergreeng: avoid overlapping border color btw VS & PS
...
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-09-30 17:07:28 -04:00
Tom Fogal
3661f757ee
Revert "Prefer intrinsics to handrolled atomic ops."
...
This reverts commit 5f66b340aa
, quickly
fixing 30514.
2010-09-30 14:41:53 -06:00
Jerome Glisse
9d4ae914e2
r600g: fix constant & literal src splitting, also fix mplayer gl2 shader
...
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-09-30 16:33:12 -04:00
Tom Fogal
5f66b340aa
Prefer intrinsics to handrolled atomic ops.
2010-09-30 13:20:57 -06:00
Tom Fogal
76a60faf52
Implement x86_64 atomics for compilers w/o intrinsics.
...
Really old gcc's (3.3, at least) don't have support for the
intrinsics we need. This implements a fallback for that case.
2010-09-30 13:20:51 -06:00
Jerome Glisse
153105cfbf
r600g: use constant buffer instead of register for constant
...
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-09-30 13:47:29 -04:00
Brian Paul
874f3a57ce
gallivm: check for level=0 case in lp_build_minify()
...
This lets us avoid the shift and max() operations.
2010-09-30 10:53:30 -06:00
José Fonseca
4e6f5e8d43
gallivm: More comprehensive border usage logic.
2010-09-30 17:42:01 +01:00
Chia-I Wu
e2b51b7c5b
st/egl: Drop context argument from egl_g3d_get_egl_image.
...
Fix a regression since 17eace581d
.
2010-09-30 23:45:27 +08:00
Nicolas Kaiser
3f28dbd9bb
gallium/winsys: remove duplicated include
...
Remove duplicated include.
Signed-off-by: Brian Paul <brianp@vmware.com>
2010-09-30 09:36:23 -06:00
Nicolas Kaiser
218d973786
gallium/st: remove duplicated includes
...
Remove duplicated includes.
Signed-off-by: Brian Paul <brianp@vmware.com>
2010-09-30 09:36:23 -06:00
Nicolas Kaiser
6f136094f4
gallium/softpipe: remove duplicated include
...
Remove duplicated include.
Signed-off-by: Brian Paul <brianp@vmware.com>
2010-09-30 09:36:23 -06:00
Nicolas Kaiser
d2149f6f22
gallium/llvmpipe: remove duplicated include
...
Remove duplicated include.
Signed-off-by: Brian Paul <brianp@vmware.com>
2010-09-30 09:36:23 -06:00
Nicolas Kaiser
3e472bee2d
gallium/i915: remove duplicated include
...
Remove duplicated include.
Signed-off-by: Brian Paul <brianp@vmware.com>
2010-09-30 09:36:22 -06:00
Nicolas Kaiser
b719c91c82
gallium/util: remove duplicated include
...
Remove duplicated include.
Signed-off-by: Brian Paul <brianp@vmware.com>
2010-09-30 09:36:21 -06:00
Nicolas Kaiser
237fa8a81c
gallium/rtasm: remove duplicated include
...
Remove duplicated include.
Signed-off-by: Brian Paul <brianp@vmware.com>
2010-09-30 09:36:21 -06:00
Chia-I Wu
d63b2622f1
st/egl: Skip single-buffered configs in EGL.
...
Let DRI2 report single-buffered configs and skip them in EGL. This is
based on the patch by Luca Barbieri.
2010-09-30 17:04:56 +08:00
Marek Olšák
83278d384e
r300g: fix conditional rendering in non-wait path
...
NOTE: This is a candidate for the 7.9 branch.
2010-09-30 02:44:30 +02:00
Dave Airlie
4378c17c88
r600g: return string for chip family
...
use same strings as r600c.
2010-09-30 09:17:20 +10:00
Dave Airlie
dbcd652602
r600g: clean up some code from move to new paths.
...
mainly remove 2 suffix from function names
2010-09-30 09:12:57 +10:00
Dave Airlie
2bc9d3f498
r600g: add L8A8 unorm.
...
fixes texEnv warnings.
2010-09-30 09:04:50 +10:00
Dave Airlie
534f7d5749
r600g: port r300g fix for X* formats in texformat code
2010-09-30 09:04:50 +10:00
José Fonseca
e3ccfd4e03
gallivm: Use SSE4.1's ROUNDSS/ROUNDSD for scalar rounding.
2010-09-29 22:29:23 +01:00
José Fonseca
21f392c971
python/retrace: Handle set_index_buffer and draw_vbo.
2010-09-29 22:29:22 +01:00
José Fonseca
c7f33624f9
trace: Fix set_index_buffer and draw_vbo tracing.
2010-09-29 22:29:22 +01:00
Vinson Lee
38c31de445
r600g: Fix SCons build.
2010-09-29 13:14:34 -07:00
Jerome Glisse
6abd7771c6
r600g: more cleanup
...
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-09-29 15:40:32 -04:00
Vinson Lee
7e536371f9
r600g: Update SConscript.
...
Fixes SCons build.
2010-09-29 12:16:39 -07:00
Vinson Lee
22c06a08e7
r600g: Update SConscript.
...
Fixes SCons build.
2010-09-29 12:09:21 -07:00
Jerome Glisse
1235becaa1
r600g: cleanup
...
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-09-29 15:06:04 -04:00
Vinson Lee
845bda34d0
r600g: Update SConscript.
...
This is a follow-up to commit 9c284b5cae
.
Fixes SCons build.
2010-09-29 11:52:55 -07:00
Marek Olšák
94e9ab975c
r300g: add support for formats beginning with X, like X8R8G8B8
...
This is actually a format translator fix.
2010-09-29 20:43:44 +02:00
Jerome Glisse
9c284b5cae
r600g: delete old path
...
Lot of clean can now happen.
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-09-29 14:28:48 -04:00
Jerome Glisse
5646964b13
r600g: use a hash table instead of group
...
Instead of creating group of register use a hash table
to lookup into which block each register belongs. This
simplify code a bit.
Signed-off-by: Jerome Glisse <jglisse@redhat.com
2010-09-29 12:44:32 -04:00
Brian Paul
0cb545a7f2
draw: pass sampler state down to llvm jit state
...
Fixes a regression caused from the change to make min/max lod dynamic
state.
https://bugs.freedesktop.org/show_bug.cgi?id=30437
2010-09-29 10:34:43 -06:00
José Fonseca
fdcc168a16
llvmpipe: Decouple sampler view and sampler state updates.
...
Fixes glean pbo crash.
It would be possible to avoid crashing without decoupling, but given
that state trackers give no guarantee that number of views is consistent,
that would likely cause too many state updates (or miss some).
2010-09-29 14:16:35 +01:00
Dave Airlie
08839c4055
Revert "r600g: add initial vertex translate support."
...
This reverts commit 914b669b08
.
I didn't mean to commit this yet, will redo in new state system once
we clean it up.
2010-09-29 20:04:00 +10:00
Dave Airlie
28b57c56e2
r600g: remove old assert from new codepath
...
this fixes draw-elements-base-vertex
2010-09-29 14:52:39 +10:00
Dave Airlie
914b669b08
r600g: add initial vertex translate support.
2010-09-29 14:41:16 +10:00
Dave Airlie
301ab49605
r600g: move radeon.h members around to add back map flushing.
2010-09-29 09:19:22 +10:00
Dave Airlie
53b3933ce6
r600g: add evergreen texture border support to new path
2010-09-29 09:19:22 +10:00
Dave Airlie
23be883c9b
r600g: add back evergreen name.
2010-09-29 09:19:22 +10:00
Tilman Sauerbeck
35f94b1942
r600g: Cleaned up index buffer reference handling in the draw module.
...
This fixes a buffer leak.
Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
2010-09-28 22:12:23 +02:00
Jerome Glisse
723a655ed3
r600g: avoid rebuilding the vertex shader if no change to input format
...
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-09-28 14:34:25 -04:00
Jerome Glisse
fe790a3c34
r600g: suspend/resume occlusion query around clear/copy
...
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-09-28 14:24:18 -04:00
Jerome Glisse
7ee8fa0421
r600g: switch to new design
...
New design seems to be on parity according to piglit,
make it default to get more exposure and see if there
is any show stopper in the coming days.
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-09-28 11:37:30 -04:00
Jerome Glisse
b534eb16a2
r600g: fix remaining piglit issue in new design
...
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-09-28 11:12:03 -04:00
Jerome Glisse
5a38cec7c8
r600g: use ptr for blit depth uncompress function
...
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-09-28 09:51:08 -04:00
Christoph Bumiller
e0b93c5beb
nv50: fix GP state bind and validate
2010-09-28 11:22:59 +02:00
Dave Airlie
175261a1f1
r600g: on evergreen the centroid isn't set in this register.
2010-09-28 19:02:46 +10:00
Dave Airlie
34dba5f05a
r600g: fix db flush breaking config state
2010-09-28 14:32:13 +10:00
Marek Olšák
e4fd65e9d7
r300g: fix swizzling of texture border color
...
NOTE: This is a candidate for the 7.9 branch.
2010-09-28 05:34:51 +02:00
Marek Olšák
13359e6a4b
r300g: add support for 3D NPOT textures without mipmapping
...
The driver actually creates a 3D texture aligned to POT and does all
the magic with texture coordinates in the fragment shader. It first
emulates REPEAT and MIRRORED wrap modes in the fragment shader to get
the coordinates into the range [0, 1]. (already done for 2D NPOT)
Then it scales them to get the coordinates of the NPOT subtexture.
NPOT textures are now less of a lie and we can at least display
something meaningful even for the 3D ones.
Supported wrap modes:
- REPEAT
- MIRRORED_REPEAT
- CLAMP_TO_EDGE (NEAREST filtering only)
- MIRROR_CLAMP_TO_EDGE (NEAREST filtering only)
- The behavior of other CLAMP modes is undefined on borders, but they usually
give results very close to CLAMP_TO_EDGE with mirroring working perfectly.
This fixes:
- piglit/fbo-3d
- piglit/tex3d-npot
2010-09-28 05:34:51 +02:00
Marek Olšák
82f8e43bfa
r300g: code cleanups
...
Some random stuff I had here.
1) Fixed some misleading comments.
2) Removed fake_npot, since it's redundant.
3) lower_texture_rect -> scale_texcoords
4) Reordered and reindented some TEX transform code.
2010-09-28 05:34:51 +02:00
Luca Barbieri
a73c6ce67b
d3d1x: work around crash in widl
2010-09-28 00:18:25 +02:00
Luca Barbieri
9126826594
d3d11: fix reference counting so devices get freed
2010-09-27 23:43:53 +02:00
Brian Paul
de2dfce0d9
softpipe: fix swizzling of texture border color
...
We ask the texture tile cache to swizzle the color for us since that's
where the view/swizzling info is available.
2010-09-27 15:06:23 -06:00
Brian Paul
3446af0179
llvmpipe: fix swizzling of texture border color
...
The pipe_sampler_view's swizzle terms also apply to the texture border
color. Simply move the apply_sampler_swizzle() call after we fetch
the border color.
Fixes many piglit texwrap failures.
2010-09-27 15:06:23 -06:00
Jerome Glisse
0282682e98
r600g: fix occlusion query after change to block structure
...
block->reg point to register value not block->pm4 which point
to packet.
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-09-27 17:00:07 -04:00
Brian Paul
029c099b54
softpipe: allocate tile data on demand
...
Changes in v2:
- Invalidate last_tile_addr on any change, fixing regressions
- Correct coding style
Currently softpipe ends up allocating more than 200 MB of memory
for each context due to the tile caches.
Even worse, this memory is all explicitly cleared, which means that the
kernel must actually back it with physical RAM right away.
This change allocates tile memory on demand.
Signed-off-by: Brian Paul <brianp@vmware.com>
2010-09-27 14:32:05 -06:00
Luca Barbieri
a359eb80c5
d3d1x: fix Map
2010-09-27 22:20:53 +02:00
Luca Barbieri
f976cd0c9e
d3d1x: rework DXGI for occlusion testing and default width/height
2010-09-27 22:20:53 +02:00
Luca Barbieri
e01e2e1883
d3d1x: put proper calling convention in headers, fixes 64-bit builds
2010-09-27 22:20:53 +02:00
Luca Barbieri
b821fdd563
d3d1x: properly support specifying MipLevels as 0
2010-09-27 22:20:53 +02:00
Luca Barbieri
db6f1d0436
d3d1x: support centroid interpolation
2010-09-27 22:20:53 +02:00
Luca Barbieri
ff531c5b05
ureg: support centroid interpolation
2010-09-27 22:20:52 +02:00
Luca Barbieri
94c2be73f4
d3d1x: link to libdrm for X11 platform too
...
Thanks to Xavier Chantry.
2010-09-27 22:20:52 +02:00
Luca Barbieri
f1afa8794e
d3d11: ignore StructureByteStride
...
D3D11 applications are allowed to pass a random value if the buffer
is not structured
2010-09-27 22:20:52 +02:00
Luca Barbieri
dfc546c047
d3d11: advertise IDXGIDevice1, not just IDXGIDevice
...
Fixes failure to create device in DirectX SDK samples.
2010-09-27 22:20:52 +02:00
Jerome Glisse
5e07483ed9
r600g: fix routing btw vertex & pixel shader
...
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-09-27 15:13:14 -04:00
Jerome Glisse
1617daaf49
r600g: fix pointsprite & resource unbinding
...
When asking to bind NULL resource assume it's unbinding
so free resource and unreference assoicated buffer.
Also fix pointsprite parameter.
Fix glsl-fs-pointcoord & fp-fragment-position
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-09-27 15:00:17 -04:00
Jerome Glisse
99c422ef5a
r600g: build packet header once
...
Build packet header once and allow to add fake register support so
we can handle things like indexed set of register (evergreen sampler
border registers for instance.
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-09-27 11:53:34 -04:00
Jerome Glisse
58a31758e3
r600g: fix index buffer drawing
...
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-09-27 09:59:52 -04:00
Luca Barbieri
99486bfc5b
d3d1x: link progs with CXXFLAGS
2010-09-27 14:26:12 +02:00
Luca Barbieri
31d8f64f3f
d3d1x: fix progs linking if not all EGL platforms are enabled
2010-09-27 14:24:33 +02:00
Luca Barbieri
9ba4b30eae
d3d1x: add private gitignore file
2010-09-27 14:24:33 +02:00
Luca Barbieri
8d0ed47d94
d3d1x: fix parallel build
2010-09-27 14:11:12 +02:00
Luca Barbieri
e507e4ec05
gallium: add $(PROGS_DEPS) as dependencies for $(PROGS)
...
Commit 80ee3a440c
added a PROGS_DEPS
definition, but no uses, even though it seems clearly intended
to be a set of additional dependencies for $(PROGS).
Correct this.
2010-09-27 14:11:12 +02:00
Tilman Sauerbeck
4c6344f569
r600g: Fixed two texture surface leaks in r600_blit_uncompress_depth().
...
Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
2010-09-27 08:37:12 +02:00
Dave Airlie
7eab5ef425
r600g: add evergreen texture resource properly.
...
adding sampler border looks impossible with current design, another day, another corner case not worked out.
2010-09-27 14:35:41 +10:00
Vinson Lee
84b2773f00
r600g: Silence uninitialized variable warnings.
...
Fixes these GCC warnings.
r600_shader.c: In function 'tgsi_tex':
r600_shader.c:1611: warning: 'src2_chan' may be used uninitialized in this function
r600_shader.c:1611: warning: 'src_chan' may be used uninitialized in this function
2010-09-26 14:34:05 -07:00
Marek Olšák
311ab3d468
r300g: fix macrotiling on R350
...
MACRO_SWITCH on R350 appears to use the RV350 mode by default. Who knew?
NOTE: This is a candidate for the 7.9 branch.
2010-09-26 22:38:52 +02:00
Jerome Glisse
d2f24c4d75
r600g: use depth decompression in new path
...
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-09-26 16:29:33 -04:00
Jerome Glisse
4ca1a92b7f
r600g: move around variables to share depth uncompression code
...
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-09-26 16:29:33 -04:00
Joakim Sindholt
16baa465a2
radeong: fix leaks
2010-09-26 19:39:05 +02:00
Joakim Sindholt
b51f6e7c23
util/u_blitter: fix leak
2010-09-26 19:03:02 +02:00
Bas Nieuwenhuizen
bc8b8d06b6
r600g: set ENABLE_KILL on evergreen too
2010-09-26 12:23:41 -04:00
Bas Nieuwenhuizen
c622174f73
r600g: set ENABLE_KILL in the shader state in the new design
2010-09-26 12:21:02 -04:00
Jerome Glisse
a852615946
r600g: disable early cull optimization when occlusion query running
...
When occlusion query are running we want to have accurate
fragment count thus disable any early culling optimization
GPU has.
Based on work from Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-09-26 12:06:46 -04:00
Vinson Lee
6f16e497af
r600g: Include p_compiler.h instead of malloc.h.
2010-09-26 03:23:31 -07:00
Vinson Lee
15f16328be
r600g: Remove unused variables.
...
Fixes these GCC warnings.
radeon.c: In function 'radeon_new':
radeon.c:59: warning: unused variable 'k'
radeon.c:59: warning: unused variable 'j'
radeon.c:59: warning: unused variable 'id'
radeon.c:59: warning: unused variable 'i'
2010-09-26 03:18:12 -07:00
Vinson Lee
51bfd4e34a
r600g: Don't return a value in function returning void.
...
Fixes this GCC warning.
radeon_state.c: In function 'radeon_state_fini':
radeon_state.c:140: warning: 'return' with a value, in function returning void
2010-09-26 03:10:58 -07:00
Vinson Lee
4743c7fbe7
r300g: Remove unused variable.
...
Fixes this GCC warning.
r300_state.c: In function 'r300_create_rs_state':
r300_state.c:925: warning: unused variable 'i'
2010-09-26 03:08:14 -07:00
Dave Airlie
81b7de5bf0
r300g: fix glsl-fs-pointcoord
...
Move GB_ENABLE to derived rs state, and find sprite coord for the correct
generic and enable the tex coord for that generic.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-09-26 18:07:07 +10:00
Vinson Lee
048bda175b
r600g: Remove unused variable.
...
Fixes this GCC warning.
radeon_bo_pb.c: In function 'radeon_bo_pb_create_buffer':
radeon_bo_pb.c:178: warning: unused variable 'domain'
2010-09-25 15:19:29 -07:00
Brian Paul
1e35f6472d
softpipe: minor asst. clean-ups
2010-09-25 14:25:40 -06:00
Brian Paul
63a5b7d7cc
softpipe: make clip state functions static
2010-09-25 14:25:40 -06:00
Brian Paul
5b2406c0b9
softpipe: make stream out state functions static
2010-09-25 14:25:40 -06:00
Brian Paul
bd13a0d282
softpipe: make rasterizer state functions static
2010-09-25 14:25:40 -06:00
Brian Paul
eed4509b08
softpipe: make vertex state functions static
2010-09-25 14:25:40 -06:00
Brian Paul
c5dd2e40e2
softpipe: make sampler state functions static
2010-09-25 14:25:40 -06:00
Brian Paul
2739692a6e
softpipe: make blend/stencil/depth functions static
2010-09-25 14:25:40 -06:00
Brian Paul
279b368dc3
softpipe: make shader-related functions static
2010-09-25 14:25:40 -06:00
Brian Paul
72c6d16f8f
softpipe: rename sp_state_fs.c -> sp_state_shader.c
2010-09-25 14:25:40 -06:00
Vinson Lee
f8ee415e3c
st/dri: Remove unnecessary header.
2010-09-25 12:39:08 -07:00
Brian Paul
4e2f53bacb
gallivm: fix repeat() function for NPOT textures
...
The trick of casting the coord to an unsigned value only works for POT
textures. Add a bias instead. This fixes a few piglit texwrap failures.
2010-09-25 13:37:05 -06:00
Brian Paul
e31f0f9965
softpipe: fix repeat() function for NPOT textures
...
The trick of casting the coord to an unsigned value only works for POT
textures. Add a bias instead. This fixes a few piglit texwrap failures.
2010-09-25 13:37:05 -06:00
Vinson Lee
1fa50412f1
r600g: Disable unused variables.
...
The variables are used only in currently disabled code.
Fixes this GCC warning.
r600_context.c: In function 'r600_flush':
r600_context.c:76: warning: unused variable 'dname'
r600_context.c:75: warning: unused variable 'dc'
2010-09-25 12:28:47 -07:00
Vinson Lee
d7065908e4
r600g: Remove unused variable.
...
Fixes this GCC warning.
r600_draw.c: In function 'r600_draw_common':
r600_draw.c:71: warning: unused variable 'format'
2010-09-25 12:25:44 -07:00
Vinson Lee
60ec71e8b9
r600g: Remove unused variable.
...
Fixes this GCC warning.
r600_screen.c: In function 'r600_screen_create':
r600_screen.c:239: warning: unused variable 'family'
2010-09-25 12:21:10 -07:00
Christoph Bumiller
86cddfb110
nv50: fix/handle a few more PIPE_CAPs
2010-09-25 19:37:09 +02:00
Christoph Bumiller
2ef1d759b3
nv50: use CLEAR_BUFFERS for surface fills
...
The 2D engine's fill doesn't seem suited for RGBA32F or ZS buffers.
2010-09-25 19:37:09 +02:00
Christoph Bumiller
583bbfb3ae
nv50: use formats table in nv50_surface.c
2010-09-25 19:37:09 +02:00
Jerome Glisse
58c243905b
r600g: fix vertex resource & polygon offset
...
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-09-25 09:26:01 -04:00
Dave Airlie
b6469a8dc7
r600g: add eg db count control register.
2010-09-25 22:14:08 +10:00
Dave Airlie
ebca23149a
r600g: make index bias fix for evergreen
2010-09-25 22:14:08 +10:00
José Fonseca
a69a96d85e
gallivm: Remove dead experimental code.
2010-09-25 12:40:01 +01:00
Keith Whitwell
7225838778
llvmpipe: handle up to 8 planes in triangle binner
2010-09-25 12:22:09 +01:00
Keith Whitwell
60a45b03c3
llvmpipe: handle FACING interpolants in line and point setup
2010-09-25 12:21:55 +01:00
José Fonseca
2a8d1fd3ce
gallivm: Fetch the lod from the dynamic state when min_lod == max_lod.
2010-09-25 12:21:19 +01:00
José Fonseca
998cf11e13
draw: Fullfil the new min_lod/max_lod/lod_bias/border_color dynamic state
2010-09-25 12:21:16 +01:00
Roland Scheidegger
049a8cce76
gallivm: optimize yuv decoding
...
this is more a proof to show vector shifts on x86 with per-element shift count
are evil. Since we can avoid the shift with a single compare/select, use that
instead. Replaces more than 20 instructions (and slow ones at that) with about 3,
and cuts compiled shader size with mesa's yuvsqure demo by over 10%
(no performance measurements done - but selection is blazing fast).
Might want to revisit that for future cpus - unfortunately AVX won't have vector
shifts neither, but AMD's XOP will, but even in that case using selection here
is probably not slower.
2010-09-25 12:19:31 +01:00
Roland Scheidegger
46d05d4ef9
gallivm: don't use URem/UDiv when calculating offsets for blocks
...
While it's true that llvm can and will indeed replace this with bit
arithmetic (since block height/width is POT), it does so (llvm 2.7) by element
and hence extracts/shifts/reinserts each element individually.
This costs about 16 instructions (and extract is not really fast) vs. 1...
2010-09-25 12:19:31 +01:00
Roland Scheidegger
26dc60d0a3
gallivm: fix copy&paste bug
...
looks like pot_depth should be used, not pot_height
(found by accident, not verified)
2010-09-25 12:19:31 +01:00
Dave Airlie
16a457bba6
r600g: add eg poly mode code.
2010-09-25 19:16:36 +10:00
Vinson Lee
53e6eb8dbe
r600g: Silence 'control reaches end of non-void function' warning.
...
Fixes this GCC warning.
r600_hw_states.c: In function 'r600_translate_fill':
r600_state_inlines.h:136: warning: control reaches end of non-void function
2010-09-24 23:48:05 -07:00
Vinson Lee
95cb6d30ae
r600g: Remove unused variable.
...
Fixes this GCC warning.
eg_hw_states.c: In function 'eg_resource':
eg_hw_states.c:525: warning: unused variable 'r'
2010-09-24 23:17:55 -07:00
Vinson Lee
68fdd5f0d9
r600g: Disable unused variables.
...
The variables are only used in currently disabled code.
Fixes this GCC warning.
r600_state2.c: In function 'r600_flush2':
r600_state2.c:613: warning: unused variable 'dname'
r600_state2.c:612: warning: unused variable 'dc'
2010-09-24 23:08:08 -07:00
Vinson Lee
207481fa53
r600g: Remove unused variable.
...
Fixes this GCC warning.
r600_buffer.c: In function 'r600_buffer_transfer_map':
r600_buffer.c:141: warning: unused variable 'rctx'
2010-09-24 22:59:46 -07:00
Vinson Lee
80ac94af72
r600g: Remove unnecessary header.
2010-09-24 22:48:46 -07:00
Vinson Lee
5c77b75316
r300g: Silence uninitialized variable warning.
...
Silence this GCC warning.
r300_state_derived.c: In function 'r300_update_derived_state':
r300_state_derived.c:578: warning: 'r' may be used uninitialized in this function
r300_state_derived.c:578: note: 'r' was declared here
2010-09-24 19:33:43 -07:00
Marek Olšák
8619495790
util: fix util_pack_color for B4G4R4A4
...
NOTE: This is a candidate for the 7.9 branch.
2010-09-25 01:52:33 +02:00