Mesa (10.4): 45 new commits

Emil Velikov evelikov at kemper.freedesktop.org
Fri Jan 23 00:59:59 UTC 2015


URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=42806f12a9bca7fb37bb8dbaacb3aff1ceab0bcf
Author: Axel Davy <axel.davy at ens.fr>
Date:   Sat Jan 3 11:29:40 2015 +0100

    st/nine: Allocate vs constbuf buffer for indirect addressing once.
    
    When the shader does indirect addressing on the constants,
    we allocate a temporary constant buffer to which we copy
    the constants from the app given user constants and
    the constants filled in the shader.
    
    This patch makes this buffer be allocated once.
    
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Signed-off-by: Axel Davy <axel.davy at ens.fr>
    Signed-off-by: Tiziano Bacocco <tizbac2 at gmail.com>
    
    Cc: "10.4" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit f8a74410f16b8a01da329975d10b631cb2a928e5)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4c9b64fc4436b77cd674a81bc2eb7dcc7df39348
Author: Axel Davy <axel.davy at ens.fr>
Date:   Fri Jan 2 14:38:01 2015 +0100

    st/nine: Allocate the correct size for the user constant buffer
    
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Signed-off-by: Axel Davy <axel.davy at ens.fr>
    Cc: "10.4" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit e0f75044c8d2793b6a5bd9832c57c5d199822486)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=69c7cf70e758d1f2297b3487d72c78390aefe031
Author: Axel Davy <axel.davy at ens.fr>
Date:   Fri Jan 2 14:22:17 2015 +0100

    st/nine: Add variables containing the size of the constant buffers
    
    Reviewed-by: Tiziano Bacocco <tizbac2 at gmail.com>
    Signed-off-by: Axel Davy <axel.davy at ens.fr>
    Cc: "10.4" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit b9cbea9dbc75630061236c9858cbc0e2b5b18974)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4d04fd08717216df67e8e7b484f4ef9281fc115c
Author: Axel Davy <axel.davy at ens.fr>
Date:   Sun Dec 7 13:42:41 2014 +0100

    st/nine: Fix sm3 relative addressing for non-debug build
    
    Relative addressing needs the constant buffer to get all
    the correct constants, even those defined by the shader.
    
    The code to copy the shader constants to the constant buffer
    was enabled only for debug build. Enable it always.
    
    Cc: "10.4" <mesa-stable at lists.freedesktop.org>
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Reviewed-by: David Heidelberg <david at ixit.cz>
    Signed-off-by: Axel Davy <axel.davy at ens.fr>
    (cherry picked from commit a721987077ae22e0c373ea118113361aada2024e)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0727ab961cc2735250c784712dbe24022904c1a9
Author: Axel Davy <axel.davy at ens.fr>
Date:   Sun Dec 7 00:14:19 2014 +0100

    st/nine: Remove unused code for ps
    
    Since constant indirect adressing is not allowed for ps,
    we can remove our code to handle that.
    
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Signed-off-by: Axel Davy <axel.davy at ens.fr>
    Cc: "10.4" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 4b7a9cfddb1b8b47aeb2b466f66973d962555542)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7280ddea9d9bed570ae667c44b436e795c656631
Author: Axel Davy <axel.davy at ens.fr>
Date:   Sat Dec 6 22:26:50 2014 +0100

    st/nine: Correct rules for relative adressing and constants.
    
    relative adressing for constants is possible only for vs float
    constants.
    
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Signed-off-by: Axel Davy <axel.davy at ens.fr>
    Cc: "10.4" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 9690bf33d7af835eb36d9e4c5928ac8483ffeeaa)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=425bc89720c700b65843d09fb7b4cfff0b624547
Author: Axel Davy <axel.davy at ens.fr>
Date:   Sun Dec 28 14:56:02 2014 +0100

    st/nine: Implement TEXREG2AR, TEXREG2GB and TEXREG2RGB
    
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Signed-off-by: Axel Davy <axel.davy at ens.fr>
    Cc: "10.4" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit bce94ce831492333dae1b85d4387c66fdbfabf57)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0b3f8c72f7a4846985c84af74477c9a148ecba7d
Author: Axel Davy <axel.davy at ens.fr>
Date:   Sun Dec 28 14:46:01 2014 +0100

    st/nine: Implement TEXDP3TEX
    
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Signed-off-by: Axel Davy <axel.davy at ens.fr>
    Cc: "10.4" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 9e23b64c15927225042b8caf7fdc549194610051)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=63e668eb1880ac7251bec1dc96689b678e9fda25
Author: Axel Davy <axel.davy at ens.fr>
Date:   Sun Dec 28 14:42:33 2014 +0100

    st/nine: Implement TEXDP3
    
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Signed-off-by: Axel Davy <axel.davy at ens.fr>
    Cc: "10.4" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 09eb1e901f4d8e8b18675eb92e5f43dcbd831501)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2b4c5777306c9dd20b3431516e4ae9a64feb2116
Author: Axel Davy <axel.davy at ens.fr>
Date:   Sun Dec 28 14:38:25 2014 +0100

    st/nine: Implement TEXDEPTH
    
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Reviewed-by: David Heidelberg <david at ixit.cz>
    Signed-off-by: Axel Davy <axel.davy at ens.fr>
    Cc: "10.4" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit f19e699368405f5fe74efe7b483f032c1a2c69be)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e3a393b4c3ef111f7352ddad5647a10b76861205
Author: Axel Davy <axel.davy at ens.fr>
Date:   Sun Dec 28 14:26:12 2014 +0100

    st/nine: Implement TEXM3x3SPEC
    
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Signed-off-by: Axel Davy <axel.davy at ens.fr>
    Cc: "10.4" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 3676ab02fbf14708c4aab94480d841003f33fcc7)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7ecd0f9528c16018c675de41811a6eedd17a9e57
Author: Axel Davy <axel.davy at ens.fr>
Date:   Sun Dec 28 14:21:15 2014 +0100

    st/nine: Implement TEXM3x2TEX
    
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Reviewed-by: David Heidelberg <david at ixit.cz>
    Signed-off-by: Axel Davy <axel.davy at ens.fr>
    Cc: "10.4" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 2b9f079ae3ebd1dcd50d1816d7835ec62f3a7782)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=336887bca1c239665c19ecd2da32e62e40a2a61c
Author: Axel Davy <axel.davy at ens.fr>
Date:   Sun Dec 28 14:18:26 2014 +0100

    st/nine: implement TEXM3x2DEPTH
    
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Signed-off-by: Axel Davy <axel.davy at ens.fr>
    Cc: "10.4" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit fdff111dc8ce95c554371ac5aaaf611aa497c0f8)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8e08ba6f9676fd5433f38c8969a1100ccccd69b1
Author: Axel Davy <axel.davy at ens.fr>
Date:   Sun Dec 28 13:05:15 2014 +0100

    st/nine: Fix TEXM3x3 and implement TEXM3x3VSPEC
    
    The fix is that this line:
    "src[s] = tx->regs.vT[s];" is wrong if s doesn't start from 0.
    Instead access tx->regs.vT directly when needed.
    
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Signed-off-by: Axel Davy <axel.davy at ens.fr>
    Cc: "10.4" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 7865210670a735f268044b0c388a4895bed1ea4c)
    
    Conflicts:
    	src/gallium/state_trackers/nine/nine_shader.c

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=77e1136f44a963c210af417cb3ad2cc853fd413c
Author: Axel Davy <axel.davy at ens.fr>
Date:   Thu Jan 8 22:21:20 2015 +0100

    st/nine: Fill missing dst and src number for some instructions.
    
    Not filling them correctly results in bad padding and later crash.
    
    Reviewed-by: David Heidelberg <david at ixit.cz>
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Signed-off-by: Axel Davy <axel.davy at ens.fr>
    
    Cc: "10.4" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit b1259544e365c67ab60f0c67b7e6de6537cca793)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=22c75f9f5a698365ca669428ed1a7899670b1e64
Author: Axel Davy <axel.davy at ens.fr>
Date:   Wed Dec 3 16:28:56 2014 +0100

    st/nine: Implement TEXCOORD special behaviours
    
    texcoord for ps < 1_4 should clamp between 0 and 1 the values.
    
    texcrd (texcoord ps 1_4) does not clamp and can be used with
    two modifiers _dw and _dz that means the channels are divided
    by w or z.
    Implement those in shared code, since the same modifiers can be used
    for texld ps 1_4.
    
    v2: replace DIV by RCP + MUL
    v3: Remove an useless MOV
    
    Reviewed-by: Tiziano Bacocco <tizbac2 at gmail.com>
    Signed-off-by: Axel Davy <axel.davy at ens.fr>
    
    Cc: "10.4" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 5399119fb1ea646880c5e8a54e4c7f789be4c574)
    
    Conflicts:
    	src/gallium/state_trackers/nine/nine_shader.c

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4b65be88608405fcc715065b4dc0e503652c5089
Author: Axel Davy <axel.davy at ens.fr>
Date:   Thu Dec 25 16:50:09 2014 +0100

    st/nine: Fix some fixed function pipeline operation
    
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Signed-off-by: Axel Davy <axel.davy at ens.fr>
    
    Cc: "10.4" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 6378d749379f7fedd668148e09dd032b8ce9a212)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9ea8e7f0df06ec7d58c172e612db33b73a9df228
Author: Axel Davy <axel.davy at ens.fr>
Date:   Wed Dec 24 09:58:49 2014 +0100

    st/nine: Clamp ps 1.X constants
    
    This is wine (and windows) behaviour.
    
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Signed-off-by: Axel Davy <axel.davy at ens.fr>
    
    Cc: "10.4" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 018407b5d8ce894815f940480c52e9791beb9e97)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d0d09a4eee93fd4b319206004606c01ce73d8609
Author: Axel Davy <axel.davy at ens.fr>
Date:   Thu Dec 25 11:37:28 2014 +0100

    st/nine: Fix CND implementation
    
    Signed-off-by: Axel Davy <axel.davy at ens.fr>
    Signed-off-by: Tiziano Bacocco <tizbac2 at gmail.com>
    
    Cc: "10.4" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 3ca67f881040b4f3ecdf9b91a7f3f0bf51cf1544)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=75f39e45f01be680f1c042d0a6f00cd27db0c08e
Author: Axel Davy <axel.davy at ens.fr>
Date:   Mon Dec 8 15:38:28 2014 +0100

    st/nine: Rewrite LOOP implementation, and a0 aL handling
    
    Previous implementation didn't work well with nested loops.
    
    Instead of using several address registers, put a0 and aL
    into normal registers, and copy them to one address register when
    we need to use them.
    
    Wine tests loop_index_test() and nested_loop_test() now pass correctly.
    
    Fixes r600g crash while loading Bioshock -
    bug https://bugs.freedesktop.org/show_bug.cgi?id=85696
    
    Tested-by: David Heidelberg <david at ixit.cz>
    Reviewed-by: Tiziano Bacocco <tizbac2 at gmail.com>
    Signed-off-by: Axel Davy <axel.davy at ens.fr>
    
    Cc: "10.4" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 6a8e5e48be0bad4606b2d5d7ba736a3d2a277c55)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=553089093f1cce5aafd2aa5a1bd92d6f8c492a47
Author: Axel Davy <axel.davy at ens.fr>
Date:   Wed Dec 3 15:50:53 2014 +0100

    st/nine: Correct LOG on negative values
    
    We should take the absolute value of the input.
    
    Also return -FLT_MAX instead of -Inf for an input of 0.
    
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Reviewed-by: David Heidelberg <david at ixit.cz>
    Signed-off-by: Axel Davy <axel.davy at ens.fr>
    
    Cc: "10.4" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit c9aa9a0addee01201d28a7bed10f7e320af591a1)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=add30f01ef0b225468161ab11b482fd157c536eb
Author: Axel Davy <axel.davy at ens.fr>
Date:   Wed Dec 3 15:31:44 2014 +0100

    st/nine: Handle NRM with input of null norm
    
    When the input's xyz are 0.0, the output
    should be 0.0. This is due to the fact that
    Inf * 0 = 0 for dx9. To handle this case,
    cap the result of RSQ to FLT_MAX. We have
    FLT_MAX * 0 = 0.
    
    Reviewed-by: David Heidelberg <david at ixit.cz>
    Signed-off-by: Axel Davy <axel.davy at ens.fr>
    
    Cc: "10.4" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit f5e8e3fb806ef8516a7bd5fabdce4cc24e4c9636)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0dfb9c9e86383e82ecbe47172d357e7c7eaec209
Author: Axel Davy <axel.davy at ens.fr>
Date:   Wed Dec 3 15:28:42 2014 +0100

    st/nine: Handle RSQ special cases
    
    We should use the absolute value of the input as input to ureg_RSQ.
    
    Moreover, an input of 0.0 should return FLT_MAX.
    
    Reviewed-by: David Heidelberg <david at ixit.cz>
    Signed-off-by: Axel Davy <axel.davy at ens.fr>
    
    Cc: "10.4" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 2487f7357449ee520a59f6d81506d297aca752f2)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7e26cf83ba69b880a50c6f48804ec8367a7e531f
Author: Axel Davy <axel.davy at ens.fr>
Date:   Wed Dec 3 15:14:07 2014 +0100

    st/nine: Fix POW implementation
    
    POW doesn't match directly TGSI, since we should
    take the absolute value of src0.
    
    Fixes black textures in some games
    
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Reviewed-by: David Heidelberg <david at ixit.cz>
    Signed-off-by: Axel Davy <axel.davy at ens.fr>
    
    Cc: "10.4" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit c12f8c208882a7e9aac0c488c08ee1771ead5a0d)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=00d22ce0fa744ec1547ed926ea6cec4b4110f8be
Author: Axel Davy <axel.davy at ens.fr>
Date:   Fri Dec 26 11:02:08 2014 +0100

    st/nine: Fix typo for M4x4
    
    Cc: "10.4" <mesa-stable at lists.freedesktop.org>
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Reviewed-by: David Heidelberg <david at ixit.cz>
    Signed-off-by: Axel Davy <axel.davy at ens.fr>
    (cherry picked from commit e0dd9ca9854b27104176d961d5c8b37b1e0637e5)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7f700cc35bb3a140850854914aa6c191a5d76dcb
Author: Axel Davy <axel.davy at ens.fr>
Date:   Fri Dec 26 09:22:26 2014 +0100

    st/nine: Correctly declare NineTranslateInstruction_Mkxn inputs
    
    Let's say we have c1 and c2 declared in the shader and c0 given by the app
    
    Then here we would have read c0, c1 and c2 given by the app, instead
    of the correct c0, c1, c2.
    
    This correction fixes several issues in some games.
    
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Signed-off-by: Axel Davy <axel.davy at ens.fr>
    Cc: "10.4" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 53dc992f204678acb9af9d1b11c1be371400930c)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e6167e749c4c3d8cb00002d4d14379e01d63be1d
Author: Axel Davy <axel.davy at ens.fr>
Date:   Wed Dec 3 14:47:24 2014 +0100

    st/nine: Saturate oFog and oPts vs outputs
    
    According to docs and Wine, these two vs outputs have
    to be saturated.
    
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Reviewed-by: David Heidelberg <david at ixit.cz>
    Signed-off-by: Axel Davy <axel.davy at ens.fr>
    
    Cc: "10.4" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 9fb58a74a04df02904317acfbd383f53305eed67)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=bce00583330dc6895fc4166fc54439132669cb51
Author: Axel Davy <axel.davy at ens.fr>
Date:   Mon Dec 22 18:44:06 2014 +0100

    st/nine: Remove some shader unused code
    
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Signed-off-by: Axel Davy <axel.davy at ens.fr>
    Cc: "10.4" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit a21483818110a1b474ea140f7e279f5960be7f30)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9a0647ba7f0cca79c1dc94c8fff53f7d6f48cdeb
Author: Axel Davy <axel.davy at ens.fr>
Date:   Fri Jan 2 13:42:11 2015 +0100

    st/nine: Convert integer constants to floats before storing them when cards don't support integers
    
    The shader code is already behaving as if they are floats when the the card doesn't support integers
    
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Signed-off-by: Axel Davy <axel.davy at ens.fr>
    
    Cc: "10.4" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit d08c7b0b880a4d5afdeac4dd5b26e2ad1c10e9da)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=669c5d6d4483b501b7b7aacc4c141261a40a9d7a
Author: Axel Davy <axel.davy at ens.fr>
Date:   Fri Jan 2 13:00:06 2015 +0100

    st/nine: Rework of boolean constants
    
    Convert them to shader booleans at earlier stage.
    Previous code is fine, but later patch will make
    integers being converted at earlier stage, so do
    the same for booleans
    
    Reviewed-by: Tiziano Bacocco <tizbac2 at gmail.com>
    Signed-off-by: Axel Davy <axel.davy at ens.fr>
    
    Cc: "10.4" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit d9d18fe39f7b4f628af23b78576e961fd452921f)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=87ac37074fc639f0bd5a8fe5c05419e0823039a7
Author: Axel Davy <axel.davy at ens.fr>
Date:   Sun Dec 7 18:11:40 2014 +0100

    st/nine: Add ATI1 and ATI2 support
    
    Adds ATI1 and ATI2 support to nine.
    
    They map to PIPE_FORMAT_RGTC1_UNORM and PIPE_FORMAT_RGTC2_UNORM,
    but need special handling.
    
    Reviewed-by: David Heidelberg <david at ixit.cz>
    Signed-off-by: Axel Davy <axel.davy at ens.fr>
    Signed-off-by: Xavier Bouchoux <xavierb at gmail.com>
    
    Cc: "10.4" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 77f0ecf9cead20ee6f61149f66663258cebd6179)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e1bcca4f1313071729210362da38bc3ad2f24fbb
Author: Axel Davy <axel.davy at ens.fr>
Date:   Wed Dec 3 23:33:07 2014 +0100

    st/nine: Check if srgb format is supported before trying to use it.
    
    According to msdn, we must act as if user didn't ask srgb if we don't
    support it.
    
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Reviewed-by: David Heidelberg <david at ixit.cz>
    Signed-off-by: Axel Davy <axel.davy at ens.fr>
    
    Cc: "10.4" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit b0b5430322406a521b8a75468452ac5d4ce86750)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=50ea1c1f5f40efe006348f3ff69ebc9118fc009f
Author: Stanislaw Halik <sthalik at misaki.pl>
Date:   Thu Dec 4 16:52:22 2014 +0100

    st/nine: Hack to generate resource if it doesn't exist when getting view
    
    Buffers in the MANAGED pool are supposed to have the content in a ram buffer,
    a copy in VRAM if there is enough memory (driver manages memory and decide when
    to delete the buffer in VRAM).
    
    This is not implemented properly in nine, and a VRAM copy is going to be created
    when the RAM memory is filled, and the VRAM copy will get synced with the RAM
    memory updates.
    
    Due to some issues (in the implementation or in app logic), it can happen
    we try to create a sampler view of the resource while we haven't created the
    VRAM resource. This hack creates the resource when we hit this case, which prevents
    crashing, but doesn't help with the resource content.
    
    This fixes several games crashing at launch.
    
    Acked-by: Axel Davy <axel.davy at ens.fr>
    Acked-by: David Heidelberg <david at ixit.cz>
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Signed-off-by: Stanislaw Halik <sthalik at misaki.pl>
    
    Cc: "10.4" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 82810d3b660dfeef53a18c0d48914783e2999b2a)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3ca8b934764dcde898d3721c1be7adb32219c96c
Author: Axel Davy <axel.davy at ens.fr>
Date:   Tue Dec 2 23:33:37 2014 +0100

    st/nine: NineBaseTexture9: update sampler view creation
    
    While previous code was having the correct behaviour in general,
    this new code is more readable (without checking all gallium formats
    manually) and has a more defined behaviour for depth stencil resources.
    
    Reviewed-by: Tiziano Bacocco <tizbac2 at gmail.com>
    Reviewed-by: David Heidelberg <david at ixit.cz>
    Signed-off-by: Axel Davy <axel.davy at ens.fr>
    Cc: "10.4" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 47280d777d33c8a78fb7286892071ef31c12f604)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d06b403377b46d3587377f34870f229821eee5b4
Author: Axel Davy <axel.davy at ens.fr>
Date:   Sun Dec 7 16:51:49 2014 +0100

    st/nine: Return D3DERR_INVALIDCALL when trying to create a texture of bad format
    
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Reviewed-by: David Heidelberg <david at ixit.cz>
    Signed-off-by: Axel Davy <axel.davy at ens.fr>
    (cherry picked from commit 0abfb80dacf80c1f2d0a6a4142b9ab84695aa9e7)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=481af42f286ec7eb9815887499c587d793d17585
Author: Axel Davy <axel.davy at ens.fr>
Date:   Wed Dec 3 00:07:26 2014 +0100

    st/nine: Fix crash when deleting non-implicit swapchain
    
    The implicit swapchains are destroyed when the device instance is
    destroyed. However for non-implicit swapchains, it is not the case,
    and the application can have kept an reference on the swapchain
    buffers to reuse them.
    
    Fixes problems with battle.net launcher.
    
    Cc: "10.4" <mesa-stable at lists.freedesktop.org>
    Tested-by: Nick Sarnie <commendsarnex at gmail.com>
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Reviewed-by: David Heidelberg <david at ixit.cz>
    Signed-off-by: Axel Davy <axel.davy at ens.fr>
    (cherry picked from commit 0d2c22e64844e20f9a52bffe2b934079a4121886)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=393fffd07d4609a36ee7ac7390a73edf66eb2bef
Author: Axel Davy <axel.davy at ens.fr>
Date:   Tue Dec 2 22:44:37 2014 +0100

    st/nine: CubeTexture: fix GetLevelDesc
    
    This->surfaces contains the surfaces associated to the levels
    and faces. This->surfaces[6*Level] is what we want here,
    since it gives us a face descriptor for the level 'Level'.
    
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Reviewed-by: David Heidelberg <david at ixit.cz>
    Signed-off-by: Axel Davy <axel.davy at ens.fr>
    Signed-off-by: Xavier Bouchoux <xavierb at gmail.com>
    
    Cc: "10.4" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 92321611787207f8f2c02a226c1370f85cb99573)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c159b4095c800486827d75125c0a74daafc7e583
Author: Axel Davy <axel.davy at ens.fr>
Date:   Tue Dec 2 22:18:30 2014 +0100

    st/nine: NineBaseTexture9: fix setting of last_layer
    
    Use same similar settings as u_sampler_view_default_template
    
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Reviewed-by: David Heidelberg <david at ixit.cz>
    Signed-off-by: Axel Davy <axel.davy at ens.fr>
    
    Cc: "10.4" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 18c7e702262425759cafddf7cc6d58543d97d7b3)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b80b5b35a3798ef804262475379160591e4f7d57
Author: Axel Davy <axel.davy at ens.fr>
Date:   Thu Dec 25 11:04:10 2014 +0100

    st/nine: Correctly advertise D3DPMISCCAPS_CLIPTLVERTS
    
    The cap means D3DFVF_XYZRHW vertices will see clipping.
    This is not the case when
    PIPE_CAP_TGSI_VS_WINDOW_SPACE_POSITION is supported, since
    it'll disable clipping.
    
    Reviewed-by: Tiziano Bacocco <tizbac2 at gmail.com>
    Signed-off-by: Axel Davy <axel.davy at ens.fr>
    
    Cc: "10.4" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 05e20e10451461a1fde3634da1eec3c1ec1b17a2)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=41ca03a7b442b642a6768676dd6dede2a7f8edc5
Author: Xavier Bouchoux <xavierb at gmail.com>
Date:   Wed Dec 17 23:10:04 2014 +0100

    st/nine: Fix D3DRS_POINTSPRITE support
    
    It's done by testing the existence of the point sprite output register *after* parsing the vertex shader.
    
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Reviewed-by: David Heidelberg <david at ixit.cz>
    Reviewed-by: Axel Davy <axel.davy at ens.fr>
    Signed-off-by: Xavier Bouchoux <xavierb at gmail.com>
    
    Cc: "10.4" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit dc8898918900a584b1783c99e77b6310f3834f11)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=18ac34825b0a2e4b237cebf1f834922e19b8173f
Author: Axel Davy <axel.davy at ens.fr>
Date:   Sun Dec 7 16:46:28 2014 +0100

    st/nine: Add new texture format strings
    
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Reviewed-by: David Heidelberg <david at ixit.cz>
    Signed-off-by: Axel Davy <axel.davy at ens.fr>
    
    Cc: "10.4" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit d2f2a550cf590ec1c9c4d94e07e1f0a0c837f891)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=15ef84ccfb36ca294c6e4859481ce979d2a73a28
Author: Xavier Bouchoux <xavierb at gmail.com>
Date:   Mon Dec 8 23:28:28 2014 +0100

    st/nine: Add missing c++ declaration for IDirect3DVolumeTexture9
    
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Reviewed-by: David Heidelberg <david at ixit.cz>
    Reviewed-by: Axel Davy <axel.davy at ens.fr>
    Signed-off-by: Xavier Bouchoux <xavierb at gmail.com>
    
    Cc: "10.4" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 072e2ba8e18e62fdaae4780b68b93a956931f4a2)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=44ee59d300e21d667d516baa637754c37803a414
Author: Xavier Bouchoux <xavierb at gmail.com>
Date:   Mon Dec 8 23:31:13 2014 +0100

    st/nine: Additional defines to d3dtypes.h
    
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Reviewed-by: David Heidelberg <david at ixit.cz>
    Reviewed-by: Axel Davy <axel.davy at ens.fr>
    Signed-off-by: Xavier Bouchoux <xavierb at gmail.com>
    
    Cc: "10.4" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 8bb550b958efcbc658f48cb3721c68e97415a1e1)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1e0ab5b8260cb6587b7b58a2eb66a56f38296abf
Author: Jose Fonseca <jfonseca at vmware.com>
Date:   Thu Nov 20 14:25:30 2014 -0800

    nine: Drop use of TGSI_OPCODE_CND.
    
    This was the only state tracker emitting it, and hardware was just having
    to lower it anyway (or failing to lower it at all).
    
    v2: Extracted from a larger patch by Jose (which also dropped DP2A), fixed
        to actually not reference TGSI_OPCODE_CND.  Change by anholt.
    
    Reviewed-by: Jose Fonseca <jfonseca at vmware.com>
    Reviewed-by: Axel Davy <axel.davy at ens.fr>
    Reviewed-by: David Heidelberg <david at ixit.cz>
    (cherry picked from commit 925cb75f894c312478e3e2f4124d2913c4d969ab)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a3381286d81b60859db0c8b26ed85d6732b7f51d
Author: Jonathan Gray <jsg at jsg.id.au>
Date:   Fri Jan 9 12:33:17 2015 +1100

    glsl: Link glsl_test with pthreads library.
    
    Otherwise pthread_mutex_lock will be an undefined reference
    on OpenBSD.
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=88219
    Signed-off-by: Jonathan Gray <jsg at jsg.id.au>
    Reviewed-by: Emil Velikov <emil.l.velikov at gmail.com>
    Cc: "10.4 10.3" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit c5be9c126d6ca9380cd381a5eb22554e4bb71a64)




More information about the mesa-commit mailing list