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
Dave Airlie
8ea7848b6e
virglrenderer: fix some memory leaks on cleanup
...
Writing some unit tests with valgrind, showed we don't always
cleanup properly fix that.
10 years ago
Dave Airlie
03e3116a75
import latest renderer code
10 years ago
Dave Airlie
a3a2c64cd6
initial import of standalone renderer
11 years ago