Dave Airlie
7e85c2f114
renderer: CLEANUP: whitespace and reindent
...
this uses the mesa coding style, pray I never have to do
this again.
strip all trailing whitespace as much as possible
10 years ago
Dave Airlie
59b9cb549a
renderer: fix some minor sparse warnings
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
5783d84b30
egl: overhaul the fourcc retrieval function
...
We really need a new mesa interface that works properly for all this.
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
3d91ff730e
renderer: cleanup context create errors and context destroy
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
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
3ef1317b81
renderer: add renderer cleanup interface
...
this just tears down the EGL stuff for now
10 years ago
Dave Airlie
5a72d1b3d3
virglrenderer: test input to init function properly
10 years ago
Dave Airlie
03e3116a75
import latest renderer code
10 years ago