Brian Paul
386102c62a
gallium: make cso_release_all() public
hace 17 años
Brian Paul
a41804909d
gallium: minor clean-ups, comments
hace 17 años
Brian Paul
ac79532a15
gallium: tweak the new shader delete funcs
hace 17 años
Brian Paul
f2c3125716
gallium: added cso_delete_vertex_fragment_shader() functions
The state tracker now uses these functions to free shaders, rather than
the pipe->delete_vs/fs-state() functions. Before, we could get in a situation
where we free() a shader and happen to alloc() a new one at the same address.
The cso_set_vertex/fragment_shader() function would no-op the state change
since the pointers were the same. This led to problems elsewhere, of course.
The new delete functions null-out the CSO's current shader pointers.
hace 17 años
Michel Dänzer
35dc003c6a
gallium: Make sure the size of non-existent storage components is set to 0.
Before adding support for formats with unused storage components, the size of
components swizzled to 0 or 1 was ignored, so this didn't matter.
hace 17 años
Jakob Bornecrantz
cefa367b5d
i915: Fix for wrong texture in texobj with VBUF
hace 17 años
Michal Krol
d712eea074
translate: Actually return a value from translate_cache_create().
hace 17 años
Keith Whitwell
63e6e33db6
trivial: simple edgeflag test
hace 17 años
Keith Whitwell
f93332da56
draw: handle edgeflags and reset-line-stipple again
hace 17 años
Keith Whitwell
dddedd915a
xlib: only shortcircuit makecurrent if NO_RAST set, otherwise window size updates fail
hace 17 años
Michel Dänzer
7333578d2a
gallium: Initial support for pixel formats with unused storage components.
Also clarify that RGB formats with no (used) alpha component are treated as
having alpha = 1.0.
hace 17 años
Brian Paul
bb4f8ae1f9
gallium: reorder code to fix a recursive flush
hace 17 años
Brian Paul
14d1ca8d86
gallium: fix issues in recursive flushing
When flushing/rendering, some stages (like AA line/point) need to set
pipe/driver state. Those driver functions often call draw_flush().
That leads to recursion.
Use new draw->suspend_flush flag to explicitly prevent that in the key places.
Remove the draw->vcache_flushing field.
Reuse draw->flushing as a debug/assertion var.
hace 17 años
Brian Paul
8437f5c763
gallium: fix comments
hace 17 años
Brian Paul
bff371c431
gallium: fix comments, whitespace changes
hace 17 años
Brian Paul
3f6242d3e4
gallium: passthrough tri, not point
hace 17 años
Zack Rusin
95f8f8863a
Add translate cache to fetch_emit stage and add out of memory
checks to code creating the cache.
hace 17 años
Zack Rusin
5fcd84ab39
Create a sharable translate_cache and use it.
hace 17 años
Brian Paul
ba47aabc98
gallium: fix potential divide by zero in fog computation
It's legal for Fog.Start == Fog.End and conformance testing does so.
hace 17 años
Brian Paul
5d873c8718
gallium: additional debug code
hace 17 años
Brian Paul
809bc8f9ad
gallium: move logicop test outside of loop
hace 17 años
Brian Paul
2221cb9f74
gallium: fix broken PIPE_BLENDFACTOR_SRC_ALPHA_SATURATE
hace 17 años
Brian Paul
76d39f0c19
gallium: more vertex debug code
hace 17 años
Zack Rusin
e1180c2d69
fix the simple hash finding function and use it
hace 17 años
José Fonseca
4f93a3a680
gallium: Fix texture refcount leak.
hace 17 años
José Fonseca
a75a3df851
pipebuffer: New function to flush the buffer cache.
hace 17 años
José Fonseca
53cf833af9
gallium: Add extern "C" to the headers.
hace 17 años
Brian Paul
333976c90a
gallium: fix broken hashing for vertex translation
It seems we get hash collisions fairly easily and the code as it was didn't
deal with that properly.
I think we need a simpler hashing interface...
hace 17 años
Keith Whitwell
43be7a4819
draw: remove stupid debug (Keith)
hace 17 años
Keith Whitwell
d6a965972b
draw: add missing break (Jakob)
hace 17 años
Keith Whitwell
1e3087cd03
mesa: add dedicated point-wide-smooth test, restore original tri.c as tri-orig.c
hace 17 años
Ben Skeggs
6fc530ccda
fix non-i386 builds
hace 17 años
Brian Paul
72fd5b9c5a
gallium: added a flushing_vcache flag, test in draw_do_flush()
Fixes broken polygon stipple, aaline, aapoint stages
hace 17 años
Brian Paul
91e37b7140
gallium: fix bad logic in bind_pstip_fragment_shader(): use &&, not ||
hace 17 años
Brian Paul
33f3938d2d
gallium: fix some bitmap frag shader issues
If texturing happens to be enabled when glBitmap() is called, need to be
careful about choosing a sampler unit, etc.
hace 17 años
Brian Paul
1977fbff60
gallium: don't set buffer status to undefined in display_front_buffer()
hace 17 años
Zack Rusin
36feb5eacf
In case the 'func' is deleting the state move the iterator before
calling it.
hace 17 años
Zack Rusin
d8f2e400cf
Fix a crash. Rasterizer can be null
hace 17 años
Zack Rusin
f088b53769
Cache translate's structs for emits and fetches.
Results in a fair speed improvement.
hace 17 años
Zack Rusin
500c41b8ba
Fix reporting of clipped vertices.
hace 17 años
Brian Paul
22cbf6a704
gallium: setup an identity viewport
This fixes broken blits.
hace 17 años
Brian Paul
0939a986a8
gallium: update comment about bypass clipping/viewport
hace 17 años
Brian Paul
aaa43218f3
gallium: setup an identity viewport
hace 17 años
Brian Paul
465bc9473a
gallium: move the vertex print/debug code
hace 17 años
Brian Paul
8f4f89c043
gallium: remove assertions
It's possible the current vs/fs is null when cso_save_vertex/fragment_shader()
is called.
hace 17 años
Brian Paul
b456f1374f
gallium: st_translate_fragment_program() is void now
The return value was never used.
hace 17 años
Keith Whitwell
4ebede8c7f
Revert "softpipe: squash warning"
This reverts commit 1f0f029ba6
.
Which broke the debug build.
hace 17 años
Keith Whitwell
0588858702
draw: allow drivers to query pipeline state more easily
Also, provide a separate flag to say whether the driver can handle
clipping/rhw tasks, in addition to the API flag which indicates they
have already been done.
hace 17 años
Keith Whitwell
1f0f029ba6
softpipe: squash warning
hace 17 años
Keith Whitwell
88f8eed3c4
cso: fix vs/fs confusion
hace 17 años