Mesa (10.2): 25 new commits

Carl Worth cworth at kemper.freedesktop.org
Mon Aug 11 21:51:06 UTC 2014


URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5532cf9d7e6844191b97730da5fa0b4849998c6b
Author: Brian Paul <brianp at vmware.com>
Date:   Fri Aug 8 15:01:50 2014 -0600

    mesa: fix assertion in _mesa_drawbuffers()
    
    Fixes failed assertion when _mesa_update_draw_buffers() was called
    with GL_DRAW_BUFFER == GL_FRONT_AND_BACK.  The piglit gl30basic hit
    this.
    
    Cc: "10.2" <mesa-stable at lists.freedesktop.org>
    
    Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
    (cherry picked from commit 39b40ad144f5f587e505b45048e33a03641ba857)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=bca8865aecaf9866e56ee415b100a442c1ef473c
Author: Maarten Lankhorst <dev at mblankhorst.nl>
Date:   Mon Aug 11 13:16:05 2014 +0200

    configure.ac: Do not require llvm on x32
    
    Cc: "10.2" <mesa-stable at lists.freedesktop.org>
    Signed-off-by: Maarten Lankhorst <dev at mblankhorst.nl>
    (cherry picked from commit 4c16e6a8e01fc8f6cbd02f2c1d367adfe17ec3c8)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=629df2fbddc2938116497ec664ab622b0de1a61f
Author: Marek Olšák <marek.olsak at amd.com>
Date:   Thu Aug 7 21:14:31 2014 +0200

    radeonsi: fix CMASK and HTILE allocation on Tahiti
    
    Tahiti has 12 tile pipes, but P8 pipe config.
    
    It looks like there is no way to get the pipe config except for reading
    GB_TILE_MODE. The TILING_CONFIG ioctl doesn't return more than 8 pipes,
    so we can't use that for Hawaii.
    
    This fixes a regression caused by fcb6c0d2b8cb36c3d1b7cbbf3437aeb65a808682
    (cherry picked from 9b046474c95f15338d4c748df9b62871bba6f36f as part of
    Mesa 10.2.5) on Tahiti.
    
    v2: add an assertion and print an error on failure
    
    Cc: mesa-stable at lists.freedesktop.org
    Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>
    (cherry picked from commit 955505f6ff1c8bba7eb142200d3bd065eb4d2297)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=22ec7df0d7687eb7db72ac2a004b21d4cb35ec7b
Author: Marek Olšák <marek.olsak at amd.com>
Date:   Wed Aug 6 02:11:04 2014 +0200

    radeonsi: fix a hang with instancing in Unigine Heaven/Valley on Hawaii
    
    This isn't documented anywhere, but it's the only thing that works
    for this case.
    
    Cc: mesa-stable at lists.freedesktop.org
    Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
    (cherry picked from commit 515269b3a73cd64ac9c017e8b3c698be9a5383f6)
    
    Conflicts:
    	src/gallium/drivers/radeonsi/si_state_draw.c

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1e0820032d76ea9585fa2b50cb73274736c3219e
Author: Marek Olšák <marek.olsak at amd.com>
Date:   Fri Aug 1 19:36:37 2014 +0200

    radeon,r200: fix buffer validation after CS flush
    
    This validates all bound buffers (CB, ZB, textures, DMA) at the beginning
    of CS. This fixes "bo->space_accouned" assertion failures.
    
    Tested by: Jochen Rollwagen <joro-2013 at t-online.de>
    Cc: mesa-stable at lists.freedesktop.org
    Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
    
    (cherry picked from commit 085a86154553d86f8e4296b4c732901f781bdfd8)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=485fd2a4ebd539a02f316f5f03bc0daf78141f47
Author: Marek Olšák <marek.olsak at amd.com>
Date:   Fri Aug 8 00:34:31 2014 +0200

    st/mesa: fix blit-based partial TexSubImage for 1D arrays
    
    This fixes piglit spec/EXT_texture_array/render-1darray.
    
    Cc: mesa-stable at lists.freedesktop.org
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Reviewed-by: Roland Scheidegger <sroland at vmware.com>
    (cherry picked from commit 0b5d88a518da7e4c8a084b7881580846c5d6d11f)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=56a455f5ba112ee6e073f9f5e660de0e2be0336a
Author: Pali Rohár <pali.rohar at gmail.com>
Date:   Fri Aug 8 18:31:07 2014 +0100

    configure: check for dladdr via AC_CHECK_FUNC/AC_CHECK_LIB
    
    Use both macros as in some cases using AC_CHECK_FUNCS alone may fail.
    Thus HAVE_DLADDR will not be defined, and as a result most of the code
    in megadriver_stub.c will not be compiled. Breaking the backwards
    compatibility between older libGL/xserver(s) and DRI megadrivers.
    
    Cc: Jon TURNEY <jon.turney at dronecode.org.uk>
    Cc: "10.2" <mesa-stable at lists.freedesktop.org>
    [Emil Velikov] Commit message.
    Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
    Reviewed-by: Matt Turner <mattst88 at gmail.com>
    
    (cherry picked from commit 39a4cc45a417bea3bb1cfbe20ea5045200f76c25)
    
    Also squashed together with:
    
    configure.ac: Use LIBS rather than LDFLAGS to add -ldl to dladdr check
    
    ec8ebff "Check for dladdr()" erroneously uses LDFLAGS rather than LIBS to add
    -ldl to the dladdr check.
    
    Replace the workaround in 39a4cc4 of explicitly checking in libdl, with a more
    correct approach of using LIBS.
    
    Signed-off-by: Jon TURNEY <jon.turney at dronecode.org.uk>
    Reviewed-by: Emil Velikov <emil.l.velikov at gmail.com>
    Tested-by: Pali Rohár <pali.rohar at gmail.com>
    Cc: "10.2" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit a2e1dc0cce3f5c4b94123a5fd4de42ecc988ab14)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3e541f0ab8740efc662860f17a1263af28b30b2a
Author: Anuj Phogat <anuj.phogat at gmail.com>
Date:   Thu Jun 12 14:49:50 2014 -0700

    meta: Fix datatype computation in get_temp_image_type()
    
    Changes in the patch will cause datatype to be computed
    correctly for 8 and 16 bit integer formats. For example:
    GL_RG8I, GL_RG16I etc.
    
    Fixes many failures in gles3 Khronos CTS test:
    copy_tex_image_conversions_required
    copy_tex_image_conversions_forbidden
    
    Cc: <mesa-stable at lists.freedesktop.org>
    Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
    Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>
    (cherry picked from commit 338fef61f86bb121e47b096428dce2a9109d3a3e)
    
    Conflicts:
    	src/mesa/drivers/common/meta.c

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=82d46ebc07277faa4618f85e9a27e0dc49da454b
Author: Anuj Phogat <anuj.phogat at gmail.com>
Date:   Wed Jun 18 17:35:18 2014 -0700

    egl: Fix OpenGL ES version checks in _eglParseContextAttribList()
    
    We would generate EGL_BAD_CONFIG because _eglGetContextAPIBit
    returns zero for the combination of EGL_OPENGL_ES_API and a major
    version > 3.  By just returning zero, the caller can't tell the
    difference between a bad version (which should generate
    EGL_BAD_MATCH) and a bad API (which should generate
    EGL_BAD_CONFIG).  This patch causes us to filter out major
    versions > 3 at a point where we can generate the correct error.
    
    Fixes gles3 Khronos CTS test:
    egl_create_context.egl_create_context
    
    V2: Fix commit message as suggested by Ian.
    
    Cc: <mesa-stable at lists.freedesktop.org>
    Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
    Reviewed-by: Tapani Pälli <tapani.palli at intel.com>
    Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
    (cherry picked from commit d308f57fe796a39d7d3f547aad62540cfd520675)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=29e2f11f5dda5833327bf2225f6ca4e8ca7f9c42
Author: Anuj Phogat <anuj.phogat at gmail.com>
Date:   Wed Jun 11 18:07:36 2014 -0700

    meta: Use _mesa_get_format_bits() to get the GL_RED_BITS
    
    We currently get red bits from ctx->DrawBuffer->Visual.redBits
    by making a false assumption that the texture we're writing to
    (in glCopyTexImage2D()) is used as a DrawBuffer.
    
    Fixes many failures in gles3 Khronos CTS test:
    copy_tex_image_conversions_required
    
    Cc: <mesa-stable at lists.freedesktop.org>
    Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
    Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>
    (cherry picked from commit 7de90890c64d019c56e5a06e427b207220729997)
    
    Conflicts:
    	src/mesa/drivers/common/meta.c

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8dc1caa1ade604a8652d3a5d5e3158c1b1ca777c
Author: Anuj Phogat <anuj.phogat at gmail.com>
Date:   Mon Jun 9 17:28:33 2014 -0700

    mesa: Allow GL_TEXTURE_CUBE_MAP target with compressed internal formats
    
    GL_TEXTURE_CUBE_MAP is an allowed texture target in glTexStorage2D()
    and is allowed to be used (like GL_TEXTURE_2D) with compressed internal
    formats.
    
    Cc: <mesa-stable at lists.freedesktop.org>
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>
    (cherry picked from commit c7def2257aae3b73ba37609dfbc0a0f35fa99c81)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=eef8b88e63414041097337957659ec0b62ba3e00
Author: Anuj Phogat <anuj.phogat at gmail.com>
Date:   Fri Jun 6 11:46:55 2014 -0700

    mesa: Add gles3 condition for normalized internal formats in glCopyTexImage*()
    
    Fixes many failures in gles3 Khronos CTS test: packed_pixels
    
    Cc: <mesa-stable at lists.freedesktop.org>
    Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
    Reviewed-by: Jason Ekstrand <jason.ekstrand at intel.com>
    (cherry picked from commit 2fc420546199b5834ea3a0741d718333596ee235)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=326648add18da1af1a2ee3e21439ad4365f37d24
Author: Anuj Phogat <anuj.phogat at gmail.com>
Date:   Fri Jun 6 12:35:55 2014 -0700

    mesa: Add utility function _mesa_is_enum_format_unorm()
    
    V2: Add missing formats.
    
    Cc: <mesa-stable at lists.freedesktop.org>
    Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
    Reviewed-by: Jason Ekstrand <jason.ekstrand at intel.com>
    (cherry picked from commit 938b3d003401538ceadac28ec5fe0e6ca583d2a6)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ad0d1a1ab313faf6cfed8a87dba3e5a0ffef6f97
Author: Anuj Phogat <anuj.phogat at gmail.com>
Date:   Fri Jun 6 11:59:28 2014 -0700

    mesa: Add gles3 error condition for GL_RGBA10_A2 buffer format in glCopyTexImage*()
    
    Fixes many failures in gles3 Khronos CTS test: packed_pixels
    
    Khronos bug# 9807
    Cc: <mesa-stable at lists.freedesktop.org>
    Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
    Reviewed-by: Jason Ekstrand <jason.ekstrand at intel.com>
    
    (cherry picked from commit 6df48ff27ad14c341a7ba4f1f833c8dbfbd056c1)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=712933f1d687c39e5a7a63864a5cd2a45dcceb78
Author: Anuj Phogat <anuj.phogat at gmail.com>
Date:   Thu Jun 5 11:48:34 2014 -0700

    mesa: Add a gles3 error condition for sized internalformat in glCopyTexImage*()
    
    Fixes many failures in gles3 Khronos CTS test: packed_pixels
    
    V2: Add the check for alpha bits to avoid confusion.
    
    Cc: <mesa-stable at lists.freedesktop.org>
    Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
    Reviewed-by: Jason Ekstrand <jason.ekstrand at intel.com>
    (cherry picked from commit 5c0d2a12f30d75df10ede6ab98434f55abae3fef)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8829b3c37a2f26184dce5fd511affc4591c084cb
Author: Anuj Phogat <anuj.phogat at gmail.com>
Date:   Thu Jun 5 11:13:16 2014 -0700

    mesa: Add a helper function _mesa_is_enum_format_unsized()
    
    Function is utilized by next patch in the series.
    
    V2: Add missing formats.
    
    Cc: <mesa-stable at lists.freedesktop.org>
    Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
    Reviewed-by: Jason Ekstrand <jason.ekstrand at intel.com>
    (cherry picked from commit e0fe00eeac75d8fdd378a1f7633d2efd1db0a7b0)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4c02b3d90eb84ebf0a9c9177dfd834e833cccaeb
Author: Anuj Phogat <anuj.phogat at gmail.com>
Date:   Fri Jun 6 14:53:12 2014 -0700

    mesa: Don't allow snorm internal formats in glCopyTexImage*() in GLES3
    
    Fixes few failures in gles3 Khronos CTS test: packed_pixels
    
    Cc: "10.2" <mesa-stable at lists.freedesktop.org>
    Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
    Reviewed-by: Jason Ekstrand <jason.ekstrand at intel.com>
    (cherry picked from commit 2d362a6aee0a1acab08590f2ba0ce50743546209)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b6fe3e7ac26ee1988452e98b2fac041067be5ac9
Author: Anuj Phogat <anuj.phogat at gmail.com>
Date:   Fri Jun 6 14:47:52 2014 -0700

    mesa: Add utility function _mesa_is_enum_format_snorm()
    
    Cc: <mesa-stable at lists.freedesktop.org>
    Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
    Reviewed-by: Jason Ekstrand <jason.ekstrand at intel.com>
    (cherry picked from commit 845b5ec89fb5543a3d38a31e1e8bc5f84449ea6c)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=323f0246efb5b86918ea9d59da7bda0d2679928e
Author: Anuj Phogat <anuj.phogat at gmail.com>
Date:   Fri May 30 17:48:34 2014 -0700

    mesa: Fix condition for using compressed internalformat in glCompressedTexImage3D()
    
    Cc: <mesa-stable at lists.freedesktop.org>
    Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
    Reviewed-by: Jason Ekstrand <jason.ekstrand at intel.com>
    (cherry picked from commit 3c7a0c690a1a0d72ad2b911e4a209447ce3edc1f)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=686247ff62578004ccacfe597e8ebc8d12624678
Author: Anuj Phogat <anuj.phogat at gmail.com>
Date:   Fri May 30 16:24:39 2014 -0700

    mesa: Add error condition for using compressed internalformat in glTexStorage3D()
    
    Fixes gles3 Khronos CTS test: texture_storage_texture_internal_formats
    
    Cc: <mesa-stable at lists.freedesktop.org>
    Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
    Reviewed-by: Jason Ekstrand <jason.ekstrand at intel.com>
    (cherry picked from commit e27c9f3a02509fe59db7ec409a339cc5ea809600)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d21e0d34fc10c01028daeced1adb4cf9142d9b33
Author: Anuj Phogat <anuj.phogat at gmail.com>
Date:   Fri May 30 17:33:54 2014 -0700

    mesa: Turn target_can_be_compressed() in to a utility function
    
    V2:  Declare the function in teximage.h
    
    Cc: <mesa-stable at lists.freedesktop.org>
    Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
    Reviewed-by: Jason Ekstrand <jason.ekstrand at intel.com>
    (cherry picked from commit ac2adf66c1ce009fed9175c891f4d90c6d79b7ab)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8bb6628cb98a2c92197d9af3614d3bfdc0b4da53
Author: Anuj Phogat <anuj.phogat at gmail.com>
Date:   Fri May 30 14:55:28 2014 -0700

    mesa: Fix error condition for valid texture targets in glTexStorage* functions
    
    Fixes gles3 Khronos CTS test: texture_storage_texture_targets
    
    Cc: <mesa-stable at lists.freedesktop.org>
    Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
    Reviewed-by: Jordan Justen <jordan.l.justen at intel.com>
    (cherry picked from commit a94d78438d35cfde851596dff8461f1e739a0ddc)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=69d6ceda434fc9ce755bc00943a95a2edd7115c4
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date:   Sun Aug 3 01:27:32 2014 -0400

    mesa/st: only convert AND(a, NOT(b)) into MAD when not using native integers
    
    Native integers imply a somewhat different handling of booleans. Instead
    of being 1.0/0.0 floats, they are 0 (true) / -1 (false) integers. As such
    the original optimization no longer applies.
    
    Reported-by: Glenn Kennard <glenn.kennard at gmail.com>
    Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>
    Cc: "10.2" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 7b3d0a9a1eb11bf70390ad116ed662a47f06183e)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1abd1d0430efd7439d8cc2312950a0c30f3aea34
Author: Jordan Justen <jordan.l.justen at intel.com>
Date:   Thu Jul 31 00:16:19 2014 -0700

    i965/miptree: Layout 1D Array as 2D Array with height of 1
    
    1D array miptrees were being laid out as a 2D texture with 1 slice.
    This happened due to the mesa core storing the 1D array slice count in
    the height field. On Intel hardware, we want to create a 2D array with
    a height of 1 for the 1D array case.
    
    Fixes assertion failure in piglit (gen6, gen8):
    spec/glsl-1.30/execution/tex-miplevel-selection textureOffset 1DArrayShadow
    
    In release builds of Mesa, this test was observed to cause a GPU hang
    on gen8.
    
    Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
    Cc: "10.2" <mesa-stable at lists.freedesktop.org>
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=81450
    Tested-by: Ben Widawsky <ben at bwidawsk.net>
    Reviewed-by: Chris Forbes <chrisf at ijw.co.nz>
    (cherry picked from commit c860a379d2fa09da1711591b6aef4a885d224ea0)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3baf37f076d645c1cb8f827cf4ee7fa666c50342
Author: Roland Scheidegger <sroland at vmware.com>
Date:   Wed Jul 30 05:07:20 2014 +0200

    gallivm: fix up out-of-bounds level when using conformant out-of-bound behavior
    
    When using (d3d10) conformant out-of-bound behavior for texel fetching
    (currently always enabled) the level still needs to be set to a safe value
    even though the offset in the end won't get used because the level is used
    to look up the mip offset itself and the actual strides, which might otherwise
    crash.
    For simplicity, we'll use level 0 in this case (this ought to be safe, llvmpipe
    does not actually fill in level 0 information if first_level is larger, but
    some random strides / offsets shouldn't hurt as ultimately we always use
    offset 0 in this case).
    Fixes a crash in some in-house test where random huge levels appear in
    lp_build_fetch_texel() (the test actually uses level 0 always but if the
    fetching happens in a block with a execution mask random values may appear).
    
    CC: <mesa-stable at lists.freedesktop.org>
    
    Reviewed-by: Jose Fonseca <jfonseca at vmware.com>
    (cherry picked from commit 5a12155503c9cd0cc77b0a0e52bc563c39631275)




More information about the mesa-commit mailing list