Dave Airlie
44a7c8cf99
renderer: some minor cleanups
...
don't call same functions twice in 2 places, don't
bother hand cleaning up stuff
10 years ago
Dave Airlie
431c818c6a
renderer: move some more stuff into ctx state
...
with contexts we don't need this in the global state.
10 years ago
Dave Airlie
b1109ee664
renderer: move program id into context
...
no point in having this in global state anymore
10 years ago
Dave Airlie
c2d68e9995
renderer: move some global state into contexts.
...
This stuff isn't required since the renderer uses contexts now
10 years ago
Dave Airlie
869a6aa5f5
renderer: add ARB_vertex_type_10f_11f_11f_rev support
10 years ago
Dave Airlie
cba784dfaf
renderer: add arb_texture_gather support
...
This just adds support for the basic TG4 opcode,
the GS5 variant is a bit more work.
10 years ago
Dave Airlie
3f4e3e1cad
renderer: add support for ARB_viewport_array
10 years ago
Dave Airlie
78370e879f
renderer: add initial texture_query_lod support
10 years ago
Dave Airlie
0ff22a06b7
renderer: ABI break: overhaul viewport/scissor state
...
add support for multiple viewports, and reduce
viewport size.
10 years ago
Dave Airlie
e13ebc57e1
renderer: move away from pipe bind flag definitions.
10 years ago
Dave Airlie
dfd7749ddb
renderer: refactor iov bounds checking
...
take the user supplied stride and layer stride into a/c
when calculating the amount of memory required to read/write
from the user supplied iovec.
10 years ago
Dave Airlie
20e86f1771
renderer: validate layer stride isn't set for some texture types
...
Some texture types have no layers, so a non-zero layer stride makes
no sense.
10 years ago
Dave Airlie
6495f870b4
renderer: block resource creation for mipmaps
...
Some scenarios for mipmap creation are illegal, so block them.
10 years ago
Dave Airlie
5e975c6a2e
renderer: switch hw contexts outside the transfer iov
...
this fixes a regression since the transfer inline rewrite
10 years ago
Marc-André Lureau
cd69deebad
Remove INLINE, use inline instead
...
Similar to MESA recent change
10 years ago
Dave Airlie
aea7785887
renderer: handle resource inline writes using common code
...
inline resource writes should use common code for transfers
10 years ago
Dave Airlie
cccbc3b5e4
renderer: return values from submit_cmd/decode block
...
makes easier to write unit tests.
10 years ago
Dave Airlie
bc975ef808
virgl/transfer: take transfer offset into a/c
...
This checks the offset can fit inside the iovec
10 years ago
Marc-André Lureau
6948e60c74
renderer: fix check for streamout target object insert
10 years ago
Dave Airlie
3a04ee4a16
renderer: drop pointless emit depth range
10 years ago
Dave Airlie
12bf136ae7
renderer: drop hw_emit_blend_color
...
no longer required since ctx
10 years ago
Dave Airlie
1b3960a150
renderer: some minor cleanups
10 years ago
Marc-André Lureau
85bfbb4443
query: fix glean/occluQry test
...
It is bad to sum up all the subsequent Begin/End values of a query,
since glBeginQuery should always reset the counter.
[airlied: I'm not 100% sure we'll never need this, but I think
sub contexts work around the problem I was initially seeing.]
10 years ago
Dave Airlie
2258a66f61
renderer: drop ctx query handling code
...
also drop active_hw flag
10 years ago
Marc-André Lureau
6fc3a2c9b5
renderer: link shaders and programs so things can be freed.
...
We need to link the shaders to the programs to ensure things
can be freed properly. This fixes a problem with glean
texCombine also.
10 years ago
Marc-André Lureau
5ddb7c3d0a
renderer: split destroy program out from free programs
...
Split out from Marc-André's larger patchset.
10 years ago
Dave Airlie
e2b6de9a89
renderer: drop reference to any shaders in sub context destroy.
...
We were holding onto a reference for these, causing a leak.
10 years ago
Dave Airlie
9537d5a6dc
renderer: only allocate ubo_locs when required
...
This fixes a valgrind warning.
10 years ago
Dave Airlie
a0074a2f1b
renderer: free timer query properly
...
Reported-by: Marc-André Lureau <marcandre.lureau@gmail.com>
10 years ago
Dave Airlie
040df0b86c
renderer: use names instead of numbers for shader indexes
10 years ago
Marc-André Lureau
abff45cff0
transfer: check iov size on all transfers
10 years ago
Marc-André Lureau
b5be63c8dc
Fix cursor resource creation
10 years ago
Dave Airlie
83d7fbb0d7
renderer: overhaul transfer code a bit
...
This merges the error/bounds checking on the transfer
code, but keeps the same API, it also uses a struct
to pass through the transfer info.
this also passes a return value out to make testing easier.
10 years ago
Dave Airlie
ca38be7a2d
renderer: check transfer read/write args better.
...
This confirms the transfer read/write args are non-NULL
10 years ago
Dave Airlie
6a2d49f37a
renderer: check detach_iov interface
...
check the return values aren't NULL
10 years ago
Dave Airlie
d30144b6aa
renderer: consolidate on errno return values
10 years ago
Dave Airlie
14b6e99bb1
renderer: protect against null debug name
10 years ago
Dave Airlie
57ca6830eb
renderer: only write get_cursor_contexts if required
10 years ago
Dave Airlie
1f4f6912e7
renderer: don't fill into a NULL caps
10 years ago
Dave Airlie
7b4bb33ce4
renderer: protect attach/detach resource against illegal inputs
...
make sure we find the context and resource for attach/detach.
10 years ago
Dave Airlie
8b423dc28a
renderer: fixup get_info interface
...
don't overwrite memory if we get a bad res or info,
return the gbm and virgl formats
use errno return values
10 years ago
Dave Airlie
96e1b0b693
renderer: reset decode contexts in two stages
...
reset the non-0 contexts first, then kill resource
table, then nuke the 0 context.
10 years ago
Dave Airlie
cbbf679c2f
renderer: test legal flags for resource creation
10 years ago
Dave Airlie
c949d36a00
renderer: add more restrictions on resource interface.
...
This restricts a bunch of illegal combinations on the
resource creation interface
10 years ago
Dave Airlie
bf8a951c1e
renderer: fix reset to use ctx 0
...
switch to ctx 0 before removing resources
10 years ago
Dave Airlie
d43773a7b6
renderer: start validating the arguments to resource creation
...
This will refuse to create resources with some illegal arguments
10 years ago
Dave Airlie
86cfc6729f
renderer: reinit after reset
...
if we get reset called we need to reinit certains things
we've destroyed.
10 years ago
Dave Airlie
f6af5914b0
renderer: destroy all contexts on renderer finish
10 years ago
Dave Airlie
aef2ec2e78
renderer: cleanup dangling resources.
...
if a context goes away we should cleanup any resources
left in its resource hash table.
10 years ago
Dave Airlie
474591db5f
renderer: fix extra whitespace
10 years ago