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
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
Dave Airlie
865cf77503
mesa/mipmap: fix warning since 1acadebd62
...
1acadebd62
fixed the pointer but not the cast.
2010-09-25 18:51:24 +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
365da88a71
intel: Remove unnecessary headers.
2010-09-24 22:55:04 -07:00
Vinson Lee
f07ac801b9
unichrome: Remove unnecessary header.
2010-09-24 22:53:40 -07:00
Vinson Lee
80ac94af72
r600g: Remove unnecessary header.
2010-09-24 22:48:46 -07:00
Vinson Lee
c510f8eeb4
mesa: Remove unnecessary headers.
2010-09-24 22:46:14 -07:00
Vinson Lee
ef1e1261df
intel: Fix implicit declaration of function '_mesa_meta_Bitmap' warning.
...
Fix this GCC warning.
intel_pixel_bitmap.c: In function 'intelBitmap':
intel_pixel_bitmap.c:343: warning: implicit declaration of function '_mesa_meta_Bitmap'
2010-09-24 22:20:43 -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
Eric Anholt
1acadebd62
mesa: Fix type typo in glGenerateMipmap handling of GL_UNSIGNED_INT data.
...
Fixes ARB_depth_texture/fbo-generatemipmap-formats.
2010-09-24 18:40:24 -07:00
Eric Anholt
b917691bc0
intel: Improve some of the miptree debugging.
2010-09-24 18:25:42 -07:00
Eric Anholt
86ad797be4
intel: More reverting of the sw fallback for depth texture border color.
...
The rest was done with 9aec1288ee
2010-09-24 18:19:08 -07:00
Eric Anholt
2e3d22b074
intel: Add fallback debug to glGenerateMipmap.
2010-09-24 18:03:28 -07:00
Eric Anholt
934fde4f5a
intel: Fix segfault on INTEL_DEBUG=fbo with unsupported framebuffers.
2010-09-24 18:03:28 -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
Eric Anholt
1946b81e70
i965: Add support for rendering to SARGB8 FBOs.
...
Tested with fbo-generatemipmap-formats GL_EXT_texture_srgb. The test
still fails on SLA8, though.
2010-09-24 16:12:50 -07:00
Eric Anholt
836803df79
intel: Corresponding FinishRenderTexture debug to BeginRenderTexture.
2010-09-24 16:12:50 -07:00