summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-06-16virgl: handle DRI3 interfaces properly.virgl-mesa-driverDave Airlie1-13/+33
this fixes glamor a lot more
2015-06-16virgl: add cso count for tf auto drawDave Airlie2-1/+6
this is a virglrenderer/mesa ABI break
2015-06-16virgl: flush if reading back tfb buffer.Dave Airlie1-0/+2
Since these can remain bound across cmd bufs, we should flush if we want to read it back.
2015-06-16u_primconvert: add primitive restart supportDave Airlie7-87/+202
This add primitive restart support to the prim conversion. This involves changing the API for the translate functions as we need to pass the prim restart index and the original number of indices into the translate functions. primitive restart is support for quads, quad strips and polygons. This deal with the case where the actual number of output primitives is less than the initially calculated number, by filling the rest of the output primitives with the restart index, the other option is to reduce the output prim number, but that will make the generator code a bit messier. Signed-off-by: Dave Airlie <airlied@redhat.com>
2015-06-16vtest: add sending command line supportDave Airlie2-0/+31
this adds an explicit rendering init command that passes the cmdline to the remote for debugging help it also tries to strip off shader_runner and get the test name.
2015-06-16virgl/vtest: handle block/compressed textures betterDave Airlie2-10/+9
should fix some bugs with compressedteximage hanging
2015-06-16vtest: avoid writing over end of resource on transfer getDave Airlie3-10/+30
we may get more data back from the other end, but we don't want to use it, just overwrite the correct data line by line
2015-06-16virgl: set to 16 max texture samplersMarc-André Lureau1-1/+1
This value should match with the number of virgl_sampler_view. PIPE_MAX_SAMPLERS is 18, but 2 are internals, and shouldn't probably be advertised. Fixes piglit spec/!opengl 2.0/max-samplers crash.
2015-06-16vtest: handle sub_box in frontbuffer flush properlyDave Airlie1-5/+11
2015-06-16vtest: drop pointless printfsDave Airlie2-6/+2
2015-06-16vtest: do proper mapping/unmap to take dts into a/cDave Airlie1-2/+11
2015-06-16vtest: abort on failed read from serverDave Airlie1-2/+5
2015-06-16vtest: flush cmd buffer properly.Dave Airlie1-0/+1
we really need to reset the cmd buffer after flushing
2015-06-16vtest: set bind flags so caching works.Dave Airlie1-0/+1
2015-06-16vtest: add more resource caching bitsDave Airlie1-1/+33
2015-06-16vtest: keep width of resource for correct box sizingDave Airlie2-2/+4
2015-06-16vtest: finish transfer, add fencingDave Airlie4-38/+470
2015-06-16vtest: start adding transfer and front flush supportDave Airlie4-21/+159
2015-06-16virgl: add front flush callbackDave Airlie2-0/+13
this is needed for vtest.
2015-06-16vtest: flesh out dummy res to avoid errors on other sideDave Airlie1-2/+4
2015-06-16vtest: add dummy emit res for now, gets glxinfo goingDave Airlie1-1/+7
2015-06-16vtest: more work on resourcesDave Airlie3-3/+24
2015-06-16vtest: add command submitDave Airlie3-3/+19
2015-06-16vtest: add some more bitsDave Airlie2-30/+67
2015-06-16virgl: add vtest driverDave Airlie11-2/+380
this is planned to be a sw driver that can do rendering over a unix socket to a remote server, and display the results using the dri sw protocol
2015-06-16virgl: don't send layer stride for unlayered textures.Dave Airlie1-2/+22
Don't need to send this and the hw rejects it now.
2015-06-16virgl: fix encoding mistake for streamout.Dave Airlie1-1/+1
2015-06-16virgl: add support for ARB_vertex_type_10f_11f_11f_revDave Airlie1-0/+10
2015-06-16virgl: import driver on 10.5 branch.Dave Airlie27-1/+4971
virgl: fix encoding of back stencil ref value VIRGL_STENCIL_REF_VAL already shifts the back value. virgl: fix shader max-outputs virgl: add texture_query_lod to caps virgl: ABI break: new viewport and scissor state virgl: add texture gather components max support Fix VIRGL_SET_SCISSOR_MAXX_MAXY virgl: update caps after rebase
2015-06-16tgsi: try and handle overflowing shaders.Dave Airlie2-3/+9
2015-06-16tgsi: add option to dump floats as hex valuesDave Airlie3-2/+30
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. Signed-off-by: Dave Airlie <airlied@redhat.com> Conflicts: src/gallium/auxiliary/tgsi/tgsi_dump.c
2015-06-07docs: Add sha256sums for the 10.5.7 releaseEmil Velikov1-1/+2
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2015-06-07Add release notes for the 10.5.7 releaseEmil Velikov1-0/+102
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2015-06-07Update version to 10.5.7Emil Velikov1-1/+1
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2015-06-03nv30: avoid doing extra work on clear and hitting unexpected statesIlia Mirkin5-9/+11
Clearing can happen at a time when various state objects are incoherent and not ready for a draw. Some of the validation functions don't handle this well, so only flush the framebuffer state. This has the advantage of also not doing extra work. This works around some crashes that can happen when clearing. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Tobias Klausmann <tobias.johannes.klausmann@mni.thm.de> (cherry picked from commit aba3392541f38f82e3ebde251fdcca78e90adbf3)
2015-06-03st/dri: fix postprocessing crash when there's no depth bufferMarek Olšák1-5/+4
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89131 Cc: 10.6 10.5 <mesa-stable@lists.freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com> (cherry picked from commit 25e9ae2b79f32631e7255807a242e5fc4e39984c)
2015-06-03i965: Emit 3DSTATE_MULTISAMPLE before WM_HZ_OP (gen8+)Ben Widawsky1-0/+10
Starting with GEN8, there is documentation that the multisample state command must be emitted before the 3DSTATE_WM_HZ_OP command any time the multisample count changes. The 3DSTATE_WM_HZ_OP packet gets emitted as a result of a intel_hix_exec(), which is called upon a fast clear and/or a resolve. This can happen before the state atoms are checked, and so the multisample state must be put directly in the function. v1: - In v0, I was always emitting the command, but Ken came up with the condition to determine whether or not the sample count actually changed. - Ken's recommendation was to set brw->num_multisamples after emitting 3DSTATE_MULTISAMPLE. This doesn't work. I put my best guess as to why in the XXX (it was causing 7 regressions on BDW). v2: Flag NEW_MULTISAMPLE state. As Ken found, in state upload we check for the multisample change to determine whether or not to emit certain packets. Since the hiz code doesn't actually care about the number of multisamples, set the flag and let the later code take care of it. Jenkins results: http://otc-mesa-ci.jf.intel.com/view/dev/job/bwidawsk/136/ Fixes around 200 piglit tests on SKL. I'm somewhat surprised that it seems to have no impact on BDW as the restriction is needed there as well. Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org> Signed-off-by: Ben Widawsky <ben@bwidawsk.net> Reviewed-by: Neil Roberts <neil@linux.intel.com> (v0) Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> (v2) (cherry picked from commit e2d84d99f5a66738e8f584bdfea66182f36fe46c)
2015-06-03cherry-ignore: add clover build fix not applicable for 10.5Emil Velikov1-0/+3
The 10.5 codebase uses a compat/wrapper implementation for the string class. As such it already explicitly includes the string header. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2015-06-03nv30: falling back to draw path for edgeflag does no goodIlia Mirkin1-3/+2
The problem is that the EDGEFLAG has to be toggled at vertex submission time. This can be done from either the draw or the regular paths. Avoid falling back to draw just because there's an edgeflag. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org> (cherry picked from commit 3ec18152858fd9aadb398d78d5ad2d2b938507c1)
2015-06-03nv30/draw: switch varying hookup logic to know about texcoordsIlia Mirkin1-9/+16
Commit 8acaf862dfe switched things over to use TEXCOORD instead of GENERIC, but did not update the nv30 swtnl draw paths. This teaches the draw logic about TEXCOORD. Among other things, this fixes a crash in demos/arbocclude when using swtnl. Curiously enough, the point-sprite piglit works without this. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org> (cherry picked from commit 25be70462dbb7ee994e69ffccc3de94e4114e667)
2015-06-03nv30/draw: allocate vertex buffers in gartIlia Mirkin1-6/+10
These are only used once per draw, so it makes sense to keep them in GART. Also take this opportunity to modernize the buffer mapping API usage. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Ben Skeggs <bskeggs@redhat.com> Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org> (cherry picked from commit c3d36a2e1a87a4aded662db7a5d320ee7ac3a8b5)
2015-06-03nv30/draw: only use the DMA1 object (GART) if the bo is not in VRAMIlia Mirkin1-3/+3
Instead of always having it in the data, let the bo placement decide it. This fixes glxgears with swtnl forced on. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Ben Skeggs <bskeggs@redhat.com> Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org> (cherry picked from commit fdad7dfbdae07b9273fc8f57e63258dbe542c9b5)
2015-06-03nv30/draw: fix indexed draws with swtnl path and a resource index bufferIlia Mirkin1-3/+3
The map = assignment was missing. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org> (cherry picked from commit 3600439897c79d37c3c654546867ddfa0c420743)
2015-06-03glsl: avoid leaking linked gl_shader when there's a late linker errorIlia Mirkin1-2/+8
This makes piglit mixing-clip-distance-and-clip-vertex-disallowed have 0 definitely lost blocks with valgrind. (Same non-0 number of possibly lost blocks though.) Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Tobias Klausmann <tobias.johannes.klausmann@mni.thm.de> Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org> (cherry picked from commit 5646f0f18a620292524eebcd77353ff3d3687eb2)
2015-06-03st/mesa: don't leak glsl_to_tgsi object on link failureIlia Mirkin1-0/+1
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org> (cherry picked from commit bb973723a5e1f27817b6be2c2fa4fb3ea28e733c)
2015-06-03nv30/draw: draw expects constbuf size in bytes, not vec4 unitsIlia Mirkin1-1/+1
This fixes glxgears with NV30_SWTNL=1 forced on. Probably fixes a bunch of other situations where we fall back to the swtnl path. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org> (cherry picked from commit 147816375d22a653176ab28ed650fa811ceea83f)
2015-06-03nv30/draw: avoid leaving stale pointers in draw stateIlia Mirkin1-4/+4
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org> (cherry picked from commit 89585edf3c01c94b62d163adf0209568efa68568)
2015-06-03nv30: fix clip plane uploads and enable changesIlia Mirkin1-9/+7
nv30_validate_clip depends on the rasterizer state. Also we should upload all the new clip planes on change since next time the plane data won't have changed, but the enables might. This fixes fixed-clip-enables and vs-clip-vertex-enables shader tests. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Tobias Klausmann <tobias.johannes.klausmann@mni.thm.de> Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org> (cherry picked from commit 7518fc3c66e9b5703b987bccca7970a344deadfa)
2015-06-03nv30: avoid leaking render state and draw shadersIlia Mirkin3-0/+16
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org> (cherry picked from commit 9870ed05dd333a20662479b9b1e3a8db542924c4)
2015-06-03nv30: don't leak fragprog constsIlia Mirkin1-0/+1
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org> (cherry picked from commit 605ce36d7f4a90c4062d6940bea82ab483bbe3b2)