Mesa (master): 47 new commits

Eric Anholt anholt at kemper.freedesktop.org
Mon Aug 11 21:54:19 UTC 2014


URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=602a3f92d4d695e116794597db81623a8fd4c653
Author: Eric Anholt <eric at anholt.net>
Date:   Sat Aug 9 11:01:53 2014 -0700

    vc4: Flip which primitives are considered front-facing.
    
    This mostly fixes glxgears rendering.

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f097516505daaaf5c25c919d56cbce54eb441a48
Author: Eric Anholt <eric at anholt.net>
Date:   Sat Aug 9 11:00:51 2014 -0700

    vc4: Don't forget to set the depth clear value in the packet.
    
    This gets glxgears partially rendering again.

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e63598aecb5d1cc2a20b8db1ef85790e301f4241
Author: Eric Anholt <eric at anholt.net>
Date:   Tue Aug 5 14:24:29 2014 -0700

    vc4: Add support for gl_FragCoord.
    
    This isn't passing all tests (glsl-fs-fragcoord-zw-ortho, for example),
    but it does get a bunch more tests passing.
    
    v2: Rebase on helpers change.

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d34fbdda120b2b0e0a33a4a18fa112e58f8a2f4a
Author: Eric Anholt <eric at anholt.net>
Date:   Tue Aug 5 14:23:40 2014 -0700

    vc4: Refactor shader input setup again.
    
    This makes some space for handling special inputs like fragcoords.

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a7faca5d2716c5f87f228c6f82eaf10373154852
Author: Eric Anholt <eric at anholt.net>
Date:   Tue Aug 5 11:00:51 2014 -0700

    vc4: Clean up the tile alloc buffer size.
    
    This prevents some simulator assertion failures, but it does mean (since
    I've dropped the "* 16" padding) that on real hardware you need a kernel
    that does overflow memory management (currently, "drm/vc4: Add support for
    binner overflow memory allocation." in my kernel tree).

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7050ab510decce2606ffcd0298b3c7fb13a1401e
Author: Eric Anholt <eric at anholt.net>
Date:   Tue Aug 5 11:00:08 2014 -0700

    vc4: Clarify some values implicitly chosen for binning config.
    
    These #defines are 0, but it should help make math above make more sense.

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ed5cb5d7d5d3d3cfeafcf67b2020044da9825abe
Author: Eric Anholt <eric at anholt.net>
Date:   Tue Aug 5 10:54:56 2014 -0700

    vc4: Improve simulator memory allocation.
    
    This should reduce a bunch of spurious failures in sim.

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f5f8dd29c30e727c10ff087321d87c40c064de04
Author: Eric Anholt <eric at anholt.net>
Date:   Mon Aug 4 18:30:33 2014 -0700

    vc4: Handle stride==0 in VBO validation

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0f034055f96b9dd7b1c54e8fa5422d22c26f2269
Author: Eric Anholt <eric at anholt.net>
Date:   Mon Aug 4 16:38:07 2014 -0700

    vc4: Stash some debug code for looking at what BOs are at what hindex.
    
    When you're debugging validation, it's nice to know what the BOs are for.

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8ebfa8fdb27bb5efaeda4fe567622d5de4779342
Author: Eric Anholt <eric at anholt.net>
Date:   Mon Aug 4 13:01:29 2014 -0700

    vc4: Use GEM under simulation even for non-winsys BOs.
    
    In addition to reducing sim-specific code, it also avoids our local handle
    allocation conflicting with the host GEM's handle numbering, which was
    causing vc4_gem_hindex() to not distinguish between winsys BOs and the
    same-numbered non-winsys bo.

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=cdc208bdaf90017c2e1aaa54d2318b956e801ca0
Author: Eric Anholt <eric at anholt.net>
Date:   Mon Aug 4 13:00:56 2014 -0700

    vc4: Don't forget to unmap the GEM BO when freeing.
    
    Otherwise it'll stick around forever.

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d2cc7f97df655bbca6486fbe81e35139215d7b72
Author: Eric Anholt <eric at anholt.net>
Date:   Sat Aug 2 21:28:34 2014 -0700

    vc4: Add validation of raster-format textures.
    
    ... and reject everything else, for now.
    
    v2: Rebase on v2 of the rendering config validation change.

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b384d167334d871292e3ee22e86dde12dc4a8c60
Author: Eric Anholt <eric at anholt.net>
Date:   Sat Aug 2 21:23:20 2014 -0700

    vc4: Drop VC4_PACKET_PRIMITIVE_LIST_FORMAT.
    
    It's not relevant to our command streams any more.
    
    v2: Fix indentation and a typo in the comment.

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3aba1b124ffcd4b9a62cbf68744b5d9fe9424ea8
Author: Eric Anholt <eric at anholt.net>
Date:   Sat Aug 2 21:06:50 2014 -0700

    vc4: Add validation that vertex indices don't overflow VBO bounds.

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5692122147ef19591e16f708d158ae014d2f6bfe
Author: Eric Anholt <eric at anholt.net>
Date:   Sat Aug 2 20:44:39 2014 -0700

    vc4: Fix the shader record size for extended strides.
    
    It turns out they aren't packed when attributes are missing, according to
    both docs and simulation.

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=aaff32ded0ef0e6b15af883831cc3ccb7b16efc4
Author: Eric Anholt <eric at anholt.net>
Date:   Sat Aug 2 20:44:39 2014 -0700

    vc4: Fix the shader record size for extended strides.
    
    It turns out they aren't packed when attributes are missing, according to
    both docs and simulation.
    
    v2: Drop unused variable.

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9f24e4e6ed1d5b6a6ea3358c51fe4fccfc860174
Author: Eric Anholt <eric at anholt.net>
Date:   Sat Aug 2 20:30:18 2014 -0700

    vc4: Add a bunch of validation of render mode configuration.
    
    v2: Fix a build break after some previous rebase.

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ff4748491b27a0b52564e48788b70cd617ed0ff2
Author: Eric Anholt <eric at anholt.net>
Date:   Sat Aug 2 20:19:38 2014 -0700

    vc4: Store the (currently always linear) tiling format in the resource.

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0bc2aed90fdfcedad501f769cbd2ae61b5a0ecb8
Author: Eric Anholt <eric at anholt.net>
Date:   Fri Aug 1 17:11:38 2014 -0700

    vc4: Add a bunch of validation of the binning mode config.

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b6caa9556c7c1cf9206ac610fb57587ad119d3ab
Author: Eric Anholt <eric at anholt.net>
Date:   Fri Aug 1 20:23:31 2014 -0700

    vc4: Validate that the same BO doesn't get reused for different purposes.
    
    We don't care if things like vertex data get smashed by render target
    data, but we do need to make sure that shader code doesn't get rendered
    to.
    
    v2: Fix overflowing read of gl_relocs[] that incorrect flagged of some
        VBOs as shader code.

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=fa26d334cbebf51bcfea7c020057af9b1907b376
Author: Eric Anholt <eric at anholt.net>
Date:   Fri Aug 1 17:31:40 2014 -0700

    vc4: Use the packet #defines in the kernel validation code.

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5969f9b79c0f52a61703bc6e829061169241bc1d
Author: Eric Anholt <eric at anholt.net>
Date:   Fri Aug 1 17:17:03 2014 -0700

    vc4: Rename GEM_HANDLES to be in a namespace.
    
    It's not a real VC4 hardware packet, but I've put in a comment to explain
    it.

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=27b8a0a0252b7315fb4a4d04f429f355958c20ee
Author: Eric Anholt <eric at anholt.net>
Date:   Fri Aug 1 17:05:21 2014 -0700

    vc4: Clean up TMU write validation.
    
    The comment conflicted with the support in the code, so I moved the TMU
    write validation to where the comment was, and dropped some dead arguments
    from the functions while changing their signatures.

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7969a1532555ec5425286105e1c1a5138deb2799
Author: Eric Anholt <eric at anholt.net>
Date:   Fri Aug 1 17:01:44 2014 -0700

    vc4: Update a comment about shader validation

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=99070c6daad72c96d517ffb18185c8b21b9d67f2
Author: Eric Anholt <eric at anholt.net>
Date:   Fri Aug 1 16:02:37 2014 -0700

    vc4: Add proper translation from Zc to Zs for vertex output.
    
    This fixes the remaining failure in depthfunc.

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4160ac5ee41630a5c9fc4e1f3520f0fabf42cb14
Author: Eric Anholt <eric at anholt.net>
Date:   Fri Aug 1 13:32:49 2014 -0700

    vc4: Add support for depth clears and tests within a tile.
    
    This doesn't load/store the Z contents across submits yet.  It also
    disables early Z, since it's going to require tracking of Z functions
    across multiple state updates to track the early Z direction and whether
    it can be used.
    
    v2: Move the key setup to before the search for the key.

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2259cc5aebcb16636b1399dd438beed9d9867e67
Author: Eric Anholt <eric at anholt.net>
Date:   Fri Aug 1 15:33:06 2014 -0700

    vc4: Avoid flushing when mapping buffers that aren't in the batch.
    
    This should prevent a bunch of unnecessary flushes for things like
    updating immediate vertex data.

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=6b2583412f0789d2aec71e55e1e187d1ad17f721
Author: Eric Anholt <eric at anholt.net>
Date:   Wed Jul 30 22:17:56 2014 -0700

    vc4: Drop the flush at the end of the draw
    
    Now we actally get multiple draw calls per submit.

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c047f1360306e0e25d2500ae13e2424254a47dbd
Author: Eric Anholt <eric at anholt.net>
Date:   Fri Aug 1 11:24:29 2014 -0700

    vc4: Align following shader recs to 16 bytes.
    
    Otherwise, the low address bits will end up being interpreted as attribute
    counts.

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=766ca5c7a5a28e6f7c0b37d6408e54f3d86b77b8
Author: Eric Anholt <eric at anholt.net>
Date:   Thu Jul 31 13:14:00 2014 -0700

    vc4: Fix a potential src buffer overflow in shader rec validation.

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=027d730aff4abf89f8c01049d245c670c6740a26
Author: Eric Anholt <eric at anholt.net>
Date:   Thu Jul 31 12:19:29 2014 -0700

    vc4: Keep a reference to BOs queued for rendering.
    
    Otherwise, once we're not flushing at the end of every draw, we'll free
    things like gallium resources, and free the backing GEM object, before
    we've flushed the rendering using it to the kernel.

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=771d86abd6c204cef82c5838b1ed20e4b8dbfa85
Author: Eric Anholt <eric at anholt.net>
Date:   Thu Jul 31 12:46:13 2014 -0700

    vc4: Compute the proper end address of the relocated command lists.
    
    render_cl_size/bin_cl_size includes relocations, while the hardware buffer
    doesn't.  If you don't emit a HALT packet, the command parser continues
    until the end register's value.  We can't allow executing unvalidated
    buffer contents (and it's actually harmful in the render lists Mesa is
    emitting, since VC4_PACKET_STORE_MS_TILE_BUFFER_AND_EOF doesn't trigger a
    halt).

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c58f35393e9505ec8694b87579037f58df607865
Author: Eric Anholt <eric at anholt.net>
Date:   Thu Jul 31 12:45:41 2014 -0700

    vc4: Walk tiles horizontally, then vertically.
    
    I was confused looking at my addresses in dumps because I was seeing the
    tile branch offsets jumping all over.

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=165ca6b5ad4fbd20798b6bd8120504761865436c
Author: Eric Anholt <eric at anholt.net>
Date:   Wed Jul 23 11:21:04 2014 -0700

    vc4: Track clears veresus uncleared draws, and the clear color.
    
    This is a step toward queueing more than one draw per frame.
    
    Fixes piglit attribute0 test, since we get a working clear color now.

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9c631f30c9703b7c49acca5a2b3c75eb538015a1
Author: Eric Anholt <eric at anholt.net>
Date:   Thu Jul 31 11:23:22 2014 -0700

    vc4: Move the rest of RCL setup to flush time.
    
    We only want to set up render target config and clear colors once per
    frame.

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=100e5679c7cfcabc9c149e63e5e833c55ea81cb0
Author: Eric Anholt <eric at anholt.net>
Date:   Thu Jul 31 11:22:17 2014 -0700

    vc4: Move render command list calls to vc4_flush()

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=fbaac8407a2397d40cb86ca9c352dfdcec38da7f
Author: Eric Anholt <eric at anholt.net>
Date:   Thu Jul 31 11:19:41 2014 -0700

    vc4: Move bin command list ending commands to vc4_flush()

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5e062cb2b4a44af7eb4ba38a8a8c3c506b22f0e2
Author: Eric Anholt <eric at anholt.net>
Date:   Tue Jul 22 20:16:10 2014 -0700

    vc4: Rename fields in the kernel interface.
    
    I decided I didn't like "len" compared to "size", and I keep typing
    shader_rec instead of shader_record[s] elsewhere, so make it consistent.

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2b16b3d75fa9350e358e80a4189d4f592c7394d4
Author: Eric Anholt <eric at anholt.net>
Date:   Tue Jul 22 20:10:01 2014 -0700

    vc4: Fix things to validate more than one shader state in a submit.

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a8f2bf0f51222a96a49dfb3d6f9b36d3e54d08cd
Author: Eric Anholt <eric at anholt.net>
Date:   Mon Jul 21 11:27:35 2014 -0700

    vc4: Rewrite the kernel ABI to support texture uniform relocation.
    
    This required building a shader parser that would walk the program to find
    where the texturing-related uniforms are in the uniforms stream.
    
    Note that as of this commit, a new kernel is required for rendering on
    actual VC4 hardware (currently that commit is named "drm/vc4: Introduce
    shader validation and better command stream validation.", but is likely to
    be squashed as part of an eventual merge of the kernel driver).

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=6a5ece12aac0f079dff3aaf00b2ec5c420b9b1f8
Author: Eric Anholt <eric at anholt.net>
Date:   Mon Jul 21 11:26:24 2014 -0700

    vc4: Add docs for the drm interface

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=11fbee320123b4bb423febe1d5841c24a28aad86
Author: Eric Anholt <eric at anholt.net>
Date:   Fri Jul 18 14:18:23 2014 -0700

    vc4: Add load/store to the validator

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a3cd3c0d198374647df3db83198e8ce0cddcb6b7
Author: Eric Anholt <eric at anholt.net>
Date:   Fri Jul 18 13:06:01 2014 -0700

    vc4: Switch simulator to using kernel validator
    
    This ensures that when I'm using the simulator, I get a closer match to
    what behavior on real hardware will be.  It lets me rapidly iterate on the
    kernel validation code (which otherwise has a several-minute turnaround
    time), and helps catch buffer overflow bugs in the userspace driver
    faster.

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a02c658908384b81e9d27e2555ba2fce2cc0f6a8
Author: Eric Anholt <eric at anholt.net>
Date:   Fri Jul 18 13:28:34 2014 -0700

    vc4: Drop pointless shader state struct

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=857dcc09fa89aa676fdc95d318ecc4f7ad9cd70a
Author: Eric Anholt <eric at anholt.net>
Date:   Wed Jul 16 21:39:05 2014 -0700

    vc4: Add support for texture rectangles
    
    v2: Rebase on helpers change.

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=66c6c401279aa4152a24681f64d0e101aa004593
Author: Eric Anholt <eric at anholt.net>
Date:   Tue Jul 15 12:29:32 2014 -0700

    vc4: Add support for texturing (under simulation)
    
    Only rgba8888 works, and only a single texture unit, and it's only under
    simulation because I haven't built the kernel interface yet.
    
    v2: Rebase on helpers.
    v3: Fold in the don't-break-the-arm-build fix.

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d5a6e3dd9b094a427c7842817227db25fbece134
Author: Eric Anholt <eric at anholt.net>
Date:   Mon Aug 11 14:40:06 2014 -0700

    vc4: Drop PIPE_SHADER_CAP_MAX_ADDRS
    
    Fixes the build since c10332bbb8889d733bdaa729ef23cbd90176b55d




More information about the mesa-commit mailing list