Marek Olšák
9f35dcd24c
r300g: fix the border color for every format other than PIPE_FORMAT_B8G8R8A8
...
TX_BORDER_COLOR should be formatted according to the texture format.
Also the interaction with ARB_texture_swizzle should be fixed too.
NOTE: This is a candidate for the 7.9 branch.
2010-09-24 02:57:36 +02:00
Marek Olšák
7d28ec8500
r300g: fix a copy-paste typo for logging
2010-09-24 02:33:34 +02:00
Marek Olšák
a333485386
r300g: make accessing map_list and buffer_handles thread-safe
...
NOTE: This is a candidate for the 7.9 branch.
2010-09-24 02:29:05 +02:00
Marek Olšák
206d92912c
r300g: fixup long-lived BO maps being incorrectly unmapped when flushing
...
Based on commit 3ddc714b20
by Dave Airlie.
NOTE: This is a candidate for the 7.9 branch.
2010-09-24 02:29:04 +02:00
Marek Olšák
68afbe89c7
util: make calling remove_from_list multiple times in a row safe
...
This commit fixes an infinite loop in foreach_s if remove_from_list is used
more than once on the same item with other list operations in between.
NOTE: This is a candidate for the 7.9 branch because the commit
"r300g: fixup long-lived BO maps being incorrectly unmapped when flushing"
depends on it.
2010-09-24 02:29:04 +02:00
Eric Anholt
f46523e0bc
i915: Remove a dead if (0) block.
2010-09-23 16:34:10 -07:00
Eric Anholt
64ff468d6f
intel: Remove dead intelIsTextureResident().
...
It always returned 1 (GL_TRUE), which is the same thing that happens when
the driver hook isn't present.
2010-09-23 16:30:58 -07:00
Eric Anholt
f9e6f401e1
unichrome: Mostly revert my convolution removal changes.
...
For this driver, the minimum pitch alignment stuff does appear to be
necessary, so leave the separate munged width/height variable in
place.
2010-09-23 16:20:33 -07:00
Eric Anholt
1c0646a826
radeon: Remove copied minimum pitch alignment code.
...
This is already covered by radeon_mipmap_tree.c, and my convolution
cleanups broke in the presence of this code. Thanks to Marek Olšák
for tracking down the relevant miptree code for me.
2010-09-23 16:20:25 -07:00
Eric Anholt
fae1855946
intel: Replace my intel_texture_bitmap code with _mesa_meta_Bitmap.
...
The meta code is more general than mine, and appears to pass the same
sets of tests (piglit + some oglconform).
2010-09-23 16:04:55 -07:00
Eric Anholt
2337f364b1
intel: Remove unnecessary minimum pitch alignment to 32 bytes.
...
This broke with the cleanup I did in convolution removal. It's
unnecessary anyway since region_alloc_tiled adjusts pitches for us (64
byte alignment)
2010-09-23 16:04:55 -07:00
Tom Stellard
92762842a0
r300g: Always try to build libr300compiler.a
...
Make libr300compiler.a a PHONY target so that this library will always be
built. This fixes the problem of libr300compiler.a not being updated
when r300g is being built and r300c is not.
This is a candidate for the Mesa 7.9 branch.
2010-09-23 15:04:35 -07:00
Eric Anholt
d26211e499
intel: Remove disabled stencil drawpixels acceleration.
...
We still retain the fallback override for GL_STENCIL_INDEX, because
the metaops version fails at oglconform.
2010-09-23 14:58:37 -07:00
Dave Airlie
c0c0c4b96b
r300g: fix point sprite coord.
...
handled elsewhere now.
thanks to Droste on irc for pointing out the fix
2010-09-24 07:46:59 +10:00
Jerome Glisse
b360c050b6
r600g: initial evergreen support in new path
...
This doesn't work yet.
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-09-23 17:10:28 -04:00
Tilman Sauerbeck
ce8c71817b
r600g: Destroy the blitter.
...
Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
2010-09-23 22:36:00 +02:00
Eric Anholt
a62efdf82c
mesa: Remove EXT_convolution.
...
More optional code.
2010-09-23 13:25:45 -07:00
Eric Anholt
73578ba9c4
mesa: Remove SGI_color_matrix.
...
Another optional ARB_imaging subset extension.
2010-09-23 13:25:45 -07:00
Eric Anholt
6c227e57e6
mesa: Remove SGI_color_table.
...
Another optional ARB_imaging subset extension.
2010-09-23 13:25:45 -07:00
Eric Anholt
7126e38d90
mesa: Remove EXT_histogram.
...
This has always been optional, and not useful.
2010-09-23 13:25:45 -07:00
Eric Anholt
907a6734fc
mesa: Remove the non-required ARB_imaging extension.
...
Many of the EXT_ extensions in the subset have significant code
overhead with no users. It is not a required part of GL -- though
text describing the extension is part of the core spec since 1.2, it
is always conditional on the ARB_imaging extension.
2010-09-23 13:25:45 -07:00
Luca Barbieri
96da9b28c8
d3d1x: obliterate IDL parameter names from d3d10.idl from Wine too
2010-09-23 16:29:29 +02:00
Luca Barbieri
bccd4eb824
d3d1x: add autogenerated files as prerequisites, so make builds them
2010-09-23 16:21:14 +02:00
Luca Barbieri
36a64bfe54
d3d1x: fix build without system EGL/egl.h
2010-09-23 16:18:52 +02:00
Luca Barbieri
eaf8fe8461
d3d1x: add missing guid.cpp
2010-09-23 16:17:36 +02:00
Luca Barbieri
1734a78538
d3d1x: flush properly
2010-09-23 16:08:37 +02:00
Luca Barbieri
206c4cc878
d3d1x: remove another include specstrings.h
2010-09-23 16:07:33 +02:00
Luca Barbieri
681f87e09b
d3d1x: flush the pipe context when presenting
2010-09-23 16:06:03 +02:00
Luca Barbieri
9a97b9af68
d3d1x: remove specstrings.h include
2010-09-23 16:06:03 +02:00
Luca Barbieri
b6b3fbcdb1
d3d11: obliterate IDL parameter names
2010-09-23 16:06:03 +02:00
Luca Barbieri
0525384c11
d3d1x: rename parameters in dxgi
2010-09-23 16:06:03 +02:00
Luca Barbieri
9cd0e624b4
d3d1x: rename params in misc and objects
2010-09-23 16:06:03 +02:00
Luca Barbieri
4f700d23fd
d3d11: rename screen params
2010-09-23 16:06:03 +02:00
Luca Barbieri
3e0f57b640
d3d1x: rename context params
2010-09-23 16:06:03 +02:00
Luca Barbieri
6b485d8518
d3d1x: minifix
2010-09-23 16:06:02 +02:00
Luca Barbieri
8224256946
d3d1x: remove specstrings
2010-09-23 16:06:02 +02:00
Luca Barbieri
6c598c78bd
d3d1x: normalize whitespace
2010-09-23 16:06:02 +02:00
Luca Barbieri
e5ae4588d1
d3d1x: s/tpf/sm4/g
2010-09-23 16:06:02 +02:00
Luca Barbieri
75c29fe1c8
d3d1x: autogenerate shader enums and text from def files
...
This avoids the duplication in tpf.h and tpf_text.cpp
2010-09-23 16:06:02 +02:00
Luca Barbieri
22762012d1
d3d1x: initialize the mutex
2010-09-23 16:06:02 +02:00
José Fonseca
440129521c
draw: Prevent clipped vertices overflow.
...
Some pathological triangles cause a theoritically impossible number of
clipped vertices.
The clipper will still assert, but at least release builds will not
crash, while this problem is further investigated.
2010-09-23 16:47:36 +01:00
Keith Whitwell
8b597b4ea4
draw: don't apply flatshading to clipped tris with <3 verts
...
If a triangle was completely culled by clipping, we would still try to
fix up its provoking vertex.
2010-09-23 16:11:17 +01:00
Luca Barbieri
1b15a3cafd
d3d1x: bind NULL CSOs before destroying default CSOs on context dtor
...
Otherwise softpipe and llvmpipe assert.
2010-09-23 11:23:08 +02:00
Luca Barbieri
17ad9972f4
d3d1x: fix deadlocks on non-recursive mutex
2010-09-23 11:23:08 +02:00
Dave Airlie
ada1d91c15
egl: fix build since 17eace581d
...
looks like mesa st didn't get updated.
2010-09-23 16:12:23 +10:00
Dave Airlie
6547a82df1
r600g: fix warnings since last commit.
2010-09-23 16:02:54 +10:00
Dave Airlie
2f8453eea3
r600g: use blitter to do db->cb flushing.
...
use the blitter + custom stage to avoid doing a whole lot of state
setup by hand. This makes life a lot easier for doing this on evergreen
it also keeps all the state setup in one place.
We setup a custom context state at the start with a flag to denote
its for the flush, when it gets generated we generate the correct state
for the flush and no longer have to do it all by hand.
this should also make adding texture *to* depth easier.
2010-09-23 16:00:16 +10:00
Dave Airlie
c262c4a2ff
u_blitter: add a custom blitter call passing a dsa cso
...
reimplement the flush stage added for r300 to allow a custom DSA stage
to be used in the pipeline, this allows for r600 hw DB->CB flushes.
2010-09-23 16:00:16 +10:00
Luca Barbieri
881c05aa1e
d3d1x: properly reference count the backend
2010-09-23 03:13:52 +02:00
Kristian Høgsberg
17eace581d
dri: Pass the __DRIscreen and the __DRIscreen private back to image lookup
...
We will typically have a current context when we need to lookup the image,
but the lookup implementation don't need it so drop it.
2010-09-22 22:02:05 -04:00