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
88b48d0606
tests: add transfer test with bad offset
...
We need to take offset into account when doing transfer size testing.
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
ac99dd02bd
tests: check cursor resource creation
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
Dave Airlie
c3fc63ff74
tests: add simple geom shader tests
...
Draws a triangle but engages the geom shader in the process.
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
Marc-André Lureau
6c33fee9dc
build-sys: add --enable-debug
10 years ago
Dave Airlie
639f0a6002
gallium/imports: drop reference and bmp debugging
...
this makes building with -DDEBUG work.
10 years ago
Dave Airlie
7234a2e25b
tests: use proper handle for surface
...
this fixes the test to use a correct handle.
10 years ago
Dave Airlie
ee3abc1fc8
tests: destory vbo in simple rendering test
10 years ago
Dave Airlie
fa71f3761d
renderer: free vertex element data
...
this is duplicated by the renderer so free the decoder data.
found with rendering test
10 years ago
Marc-André Lureau
f66acaff87
tests: add check of bad iov write
10 years ago
Marc-André Lureau
abff45cff0
transfer: check iov size on all transfers
10 years ago
Marc-André Lureau
9ae41c26fe
tests: add virgl_test_transfer_1d
...
Add a working case
10 years ago
Marc-André Lureau
0d033a1380
tests: add testvirgl_create_backed_simple_1d_res
10 years ago
Dave Airlie
b76bbe4f22
tests: add simple rendering test
...
This clears a buffer and renders a triangle to it
it just confirms something is drawn
10 years ago
Dave Airlie
91ec75a503
tests: allow passing shader strings directly.
...
This makes writing tests using text shaders possible
10 years ago
Dave Airlie
fcaeadc4ad
tests: add fence handling
...
This adds a basic fence handling interface.
10 years ago
Dave Airlie
bdb49d5636
tests: modify some test utility functions
...
add w/h version for texture 2d
add backed buffer binding fn.
10 years ago
Dave Airlie
1c29fc4176
build: add DEFINES to test build
...
this picks up the _GNU_SOURCE in the tests.
10 years ago
Dave Airlie
27666d855f
tests: add a simple blitter test
...
this just blits a piece from one resource to another, then
reads back the second one.
10 years ago
Dave Airlie
50ccab6f6c
tests: add a simple backed resource creation utility
...
Then hook the cmd stream test into it to use it.
10 years ago
Dave Airlie
31c561de14
tests: add a cmdbuf test that verifies a clear on a buffer.
...
Signed-off-by: Dave Airlie <airlied@redhat.com>
10 years ago
Dave Airlie
94946a6ea6
tests: add framework to create a context with a command buffer.
10 years ago
Dave Airlie
688017b73f
tests: start adding encoder code to test harness
...
This is to allow testing the cmd stream.
Signed-off-by: Dave Airlie <airlied@redhat.com>
10 years ago
Dave Airlie
8954f84727
tgsi: try and handle overflowing shaders.
10 years ago
Dave Airlie
d404b2279b
tgsi: add option to dump floats as hex values
...
This adds support to the parser to accept hex values as floats,
and then adds support to the dumper to allow the user to select
to dump float as 32-bit hex numbers.
[pulled from virgl driver repo]
Signed-off-by: Dave Airlie <airlied@redhat.com>
10 years ago