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
c13ac6fcd5
renderer: limit immediates to a higher number
...
varying-packing-simple float separate was overflowing
the immediate pool, so add a limit, then increase
the limit so test passes.
10 years ago
Dave Airlie
dac4578a37
renderer: make sure to get glsl 1.50 for interface blocks
...
we can't emit an interface block in glsl 1.40
10 years ago
Dave Airlie
f6a786c6ea
renderer: allow binding 0 vbos
...
This was broken calculation, we should allow binding 0 vbos.
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
c66f8b23d9
renderer: add support for ARB_texture_query_levels
10 years ago
Marc-André Lureau
19fae107e9
Fix VIRGL_SET_SCISSOR_MAXX_MAXY
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
3dcc980055
renderer: add some more caps info
...
this is jsut for 3 trivial extensions
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
1fe0822ff4
renderer: fix bug transfer inline write decoding
...
cleanup a little, but also read layer stride from correct place
found writing validation tests.
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
b6971e08b8
shader: ignore empty color mask in emit_color_select()
...
Fixes piglit interpolation-flat-other-flat-none.shader_test
10 years ago
Marc-André Lureau
dd954de6e0
shader: fix uniform buffer object size
...
Size of array is Range.Last+1, like other declarations
Fixes piglit spec/glsl-1.40/uniform_buffer/fs-basic
10 years ago
Marc-André Lureau
dbd90fb682
Rename Elements ARRAY_SIZE
...
Similar to upstream mesa change
10 years ago
Marc-André Lureau
cd69deebad
Remove INLINE, use inline instead
...
Similar to MESA recent change
10 years ago
Marc-André Lureau
e4880f6bd3
shader: fix UCMP translation
10 years ago
Marc-André Lureau
ee78525252
shader: promote type for comparison with same type
...
Fixes some piglit test.
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
Dave Airlie
e7afcd62cf
build: fix make distcheck
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
Marc-André Lureau
58ef21b0b8
vrend: accept empty vertex elements
...
Vertex elements may have a count of 0, this is an acceptable value.
Fix piglit spec/glsl-1.50/execution/geometry/primitive-types
gl_triangle_fan test.
10 years ago
Marc-André Lureau
e094ca79f9
vrend: return EINVAL for unknown object type
10 years ago
Marc-André Lureau
6948e60c74
renderer: fix check for streamout target object insert
10 years ago
Dave Airlie
135dc05084
gallium: drop unused header
10 years ago
Dave Airlie
e440d4b48c
gallium: drop some debug code
10 years ago
Dave Airlie
51d84f851c
gallium: drop large fast math tables
...
no need for these in virgl
10 years ago
Dave Airlie
55d226385b
gallium: drop tgsi execute code.
...
don't need this in virgl
10 years ago
Dave Airlie
d01f462c53
gallium: drop unneeded format code
...
we don't need the accessor methods in virgl so far, only
the description tables, so drop all the extra stuff for now.
this introduces the python from mesa to generate our cut down
table
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
Dave Airlie
4a6383f4ce
build: make distcheck work
...
Mostly taken from Marc's branch, just didn't change
as much stuff around
10 years ago
Dave Airlie
639f0a6002
gallium/imports: drop reference and bmp debugging
...
this makes building with -DDEBUG work.
10 years ago