Dave Airlie
4385520930
renderer: fix compressed transfer gets
...
This code ended up in the other file and really wasn't necessary
there.
Remove the transfer code from virglrenderer.c, move into main
renderer file, and match it with the corresponding transfer
reader.
This should at least fix the crash in compressed textures
with ARB_get_texture_sub_image
9 years ago
Dave Airlie
16990471e7
renderer: misc cleanups
...
move some static decls around,
drop useless struct
10 years ago
Dave Airlie
38f01a3daf
renderer: reorder some structs to remove holes
10 years ago
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
ca23e98b22
renderer: CLEANUP: boolean/GLboolean -> bool
...
use stdbool.h as much as possible
some of the gallium code imported uses boolean
so leave it alone for now
10 years ago
Dave Airlie
9259bc768e
renderer: handle transform feedback 2 and 3 extensions
...
This fixes a number of issues with how transform feedback works
it does requires ARB_transform_feedback3 to work at all, but
hopefully this extension is widespread enough, if not we can
revisit later.
It uses transform feedback objects to store the stream out
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
3f4e3e1cad
renderer: add support for ARB_viewport_array
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
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
2258a66f61
renderer: drop ctx query handling code
...
also drop active_hw flag
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
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
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
03e3116a75
import latest renderer code
10 years ago