Commit graph

39419 commits

Author SHA1 Message Date
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
Luca Barbieri
f762f7b85d mesa: make makedepend an hard requirement
Currently makedepend is used by the Mesa Makefile-based build system,
but not required.

Unfortunately, not having it makes dependency resolution non-existent,
which is a source of subtle bugs, and is a rarely tested
configuration, since all Mesa developers likely have it installed.

Furthermore some idioms require dependency resolution to work at all,
such as making headers depend on generated files.
2010-09-27 14:10:18 +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
Tom Stellard
522e994a22 r300/compiler: Fix two mistakes in the presubtract optimization pass.
1. We can't turn an instruction into a presubtract operation if it
writes to one of the registers it reads from.
2. If we turn an instruction into a presubtract operation, we can't
remove that intruction unless all readers can use the presubtract
operation.

This fixes fdo bug 30337.
This is a candidate for the 7.9 branch.
2010-09-25 14:53:25 -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
5ba62cd413 swrast: update comments for REMAINDER() macro 2010-09-25 13:37:05 -06: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
f3e6a0faa9 intel: Remove unnecessary header. 2010-09-25 12:33:28 -07: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