summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2016-06-14vrend: fix text in stellarium.fix-red-blit-shaderDave Airlie4-2/+89
If we are blitting to an emulated alpha we should rewrite inside the shader, not in the incoming texture swizzle.
2016-04-11release.sh: fix pathsDave Airlie1-2/+2
2016-04-11bump version to 0.5.0 for releaseDave Airlie1-1/+1
2016-04-11add initial release script ported from X.orgDave Airlie1-0/+693
2016-03-31tgsi: don't fail on unknown propertyMarc-André Lureau1-2/+11
They should mostly be fine, as long the shader compiles. The reported error should be enough to diagnose something going wrong in case of failure. This should help avoiding temporary regressions when new properties are introduced in mesa.git before they are either handled or filtered out by virgl, as was the case with commit fbe6e92899. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
2016-03-31tgsi: use printf-style argument for report_error()Marc-André Lureau1-2/+9
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
2016-03-31shader: avoid use after freeMarc-André Lureau1-4/+5
If the shader failed to be finished, it should be removed from the hashtable if it was already inserted. Use the goto error path in this case to handle shader destroy and prevent potential later lookup of invalid shader from the hashtable. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
2016-03-31shader: check array boundsMarc-André Lureau1-2/+53
Some piglit tests read/write outside of fix-sized arrays. Return an error in this case. Note: further investigation needed to avoid such access in the first place. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
2016-03-16renderer: check valid consts outside loopDave Airlie1-5/+5
This just moves a check outside the loop, as this is a bit of a hotpath.
2016-03-16renderer: don't lookup sampler view resources repeatedlyDave Airlie1-6/+2
We take a reference to this at startup, don't keep looking it up drop tracking res_handle as well.
2016-03-16renderer: define last_shader_idx to avoid the geom/frag selection.Dave Airlie1-7/+11
This is just a cleanup, to avoid seeing the calculation in a few places.
2016-03-16renderer: don't re-add a sampler if it's the same.Dave Airlie1-0/+3
If we lookup the same sampler view then ignore this. This catches about 10% of the sampler view updates in xonotic
2016-03-08renderer: avoid looking up the same shader on every draw.Dave Airlie1-8/+25
If we have a lot of draws we end up traversing the linked list looking for the same shader on each draw call even if the shader is the same one we used the last time. This removes a chunk of CPU overhead in the draw path.
2016-03-08renderer: add program to end of list.Dave Airlie1-1/+1
This seems to do better in xonotic traces, we at least don't traverse as much of the list to pick up the shaders. I think we should be using a hash table here really.
2016-03-08docs: add some notes on piglit test failures to avoid rehashing themDave Airlie1-0/+18
2016-03-08renderer: add support for handling blit render conditions.Dave Airlie4-0/+34
This with a change in the mesa side should fix the remaining render condition test fails
2016-03-07build-sys: do not build tests on win32Marc-André Lureau1-1/+1
They heavily rely on egl/linux currently Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2016-03-07build-sys: do not build vtest on win32Marc-André Lureau1-1/+5
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2016-03-07virglrenderer.h: remove useless struct virgl_resourceMarc-André Lureau1-2/+0
Found thanks to IWYU. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2016-03-07renderer: remove unnecessary includesMarc-André Lureau1-4/+0
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2016-03-07renderer: fix compilation if egl isn't supportedMarc-André Lureau2-2/+29
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2016-03-07renderer: fix undeclared read/write warningsMarc-André Lureau1-0/+1
On some systems, unistd is not implicitely included Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2016-03-07iov: add iovec definition fallbackMarc-André Lureau1-0/+9
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2016-03-07renderer: broaden scope of HAVE_EVENTFD blockMarc-André Lureau1-1/+1
To fix warnings on !eventfd systems Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2016-03-07build-sys: check a few headersMarc-André Lureau1-1/+1
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2016-03-07build-sys: do not check for pthread & libdrm & gbm on win32Marc-André Lureau1-3/+20
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2016-03-07build-sys: set bug-report locationMarc-André Lureau1-1/+1
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2016-03-07renderer: fix xonotic regressionDave Airlie1-1/+1
This resource validation check was incorrect, fix so that xonotic can run in the guest again.
2016-03-01renderer: fix separate buffer clearsDave Airlie1-3/+28
this fixes clearbuffer-mixed-format
2016-03-01shader: handle integer samplering properly.Dave Airlie1-6/+37
We weren't converting integer sampler results correctly, so bad things ensued, this uses the info in the sampler view to recreate the proper return values and do the correct casting.
2016-03-01renderer: handle RGB16F uploads properlyDave Airlie1-0/+1
missing case for alignment 6, 2 case is correct. this fixes a bunch of RGB16F fails.
2016-02-29renderer: fix fbo-draw-buffers-blendDave Airlie1-2/+2
Need to use the correct index into the array.
2016-02-29renderer: fix frag depth writing from textureHEADmasterDave Airlie1-6/+9
We need to ignore the writemask for frag depth writes, this fixes a bunch of depth draw/copy pixels tests.
2016-02-29shader: fixes viewport-no-gs.shader_testMarc-André Lureau1-0/+14
Add fragment gl_ViewportIndex support. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2016-02-29shader: fixes piglit layer-gs-no-writeMarc-André Lureau1-1/+14
Fix using undeclared gl_Layer from fragment shader. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2016-02-29renderer: remove stencil attachments betterDave Airlie1-3/+13
disconnect using the proper functions, the API in theory works but mesa has bugs so lets avoid it for now. This fixes 1d texture depth tests.
2016-02-29renderer: handle gaps in vertex shader inputsDave Airlie3-2/+9
We are seeing shaders with 0 and 2 inputs, but no 1, so we need to handle gaps properly. This fixes some regressions in drawpixels after some mesa changes on the guest.
2016-02-29shader: improve TXQ translationMarc-André Lureau1-7/+47
TXQ may query levels and size. Fixes all piglit texturesize tests and others. [airlied: use EMIT_BUF_WITH_RET]. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
2016-02-26Fix alpha-test regressionMarc-André Lureau1-0/+1
Commit 53286c6f5af introduced a regression, there is a missing break in the switch.. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
2016-02-26add ax_code_coverage.m4 for distros that don't ship it.Dave Airlie1-0/+229
2016-02-26fix pthread_libs additionDave Airlie1-1/+1
2016-02-26configure: check for -lgbmMichal Privoznik2-1/+4
We use the library unconditionally, however not check it in configure phase. Let's produce an error there and not at compilation phase. And while at it, drop -ldl from LDFLAGS too. I suspect it's coming from the same source because in the gbm pkg-config file private libs are to be linked with dl. But not only we are not a gbm private library, we don't use dl*() anywhere. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
2016-02-26add missing ax_pthread for distros that don't have itDave Airlie1-0/+309
2016-02-18bump to 0.4.1 for regression fixDave Airlie1-1/+1
2016-02-18vrend: fix VREND_MAX_CTX checksMarc-André Lureau1-5/+6
Context array is declared as dec_ctx[VREND_MAX_CTX], virgl shouldn't accept id == VREND_MAX_CTX. Found thanks to AddressSanitizer. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2016-02-18shader: add a few handled texture typeMarc-André Lureau1-0/+7
This is a regression fix from c59eddf16e83. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2016-02-18Fix potential leak in fill_interpolants()Marc-André Lureau1-0/+1
Fix found thanks to AddressSanitizer & piglit glsl-1.50/execution/built-in-functions/gs-pow-vec3-vec3.shader_test. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2016-02-18Fix i965 crash with bin/gl-3.1-vao-broken-attribMarc-André Lureau1-0/+10
It's unfortunate, but the i965 driver deliberately crash on such simple test case. Fortunately, it seems fairly straightforward to avoid it in virgl. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2016-02-17bump library minor to 0.2Dave Airlie1-1/+1
this is to reflect the new APIs added for the sync thread
2016-02-17version: bump to 0.4.0Dave Airlie1-1/+1
Just to package latest stuff in Fedora, all the AFL fixes.