summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2022-01-26VERSION: bump for 21.3.5mesa-21.3.5Eric Engestrom1-1/+1
2022-01-26docs: add release notes for 21.3.5Eric Engestrom1-0/+143
2022-01-26freedreno/a5xx: Fix clip_maskRob Clark4-4/+7
The clip_mask needs to also take into account rast->clip_plane_enable Fixes: 99838513aee ("freedreno/a5xx: Add support for clip distances and use them for userclip.") Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14643> (cherry picked from commit 2dfebf34874b5365156d254c2c1ba2ecc5262deb)
2022-01-26freedreno/a6xx: Fix clip_maskRob Clark6-3/+15
The clip_mask needs to also take into account rast->clip_plane_enable Fixes: f2ae8d116ab ("freedreno/a6xx: Implement user clip/cull distances") Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14643> (cherry picked from commit d26cdfac2c43e84c1a21fb7614939bf5b1b3ba03)
2022-01-26freedreno: Add FD_DIRTY_RASTERIZER_CLIP_PLANE_ENABLERob Clark3-5/+12
Add a dirty bit for clip_plane_enable changes. Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14643> (cherry picked from commit 5e2bd30ea4c0f570c99d58490ace2ae3a3bd5e44)
2022-01-26freedreno: Pass shader cache key instead of shader keyRob Clark7-8/+10
We are going to need to extend the cache key to add state that effects the program stateobj, but not necessarily the shader itself (ie. so ir3_shader_key wouldn't be the correct place to add it). Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14643> (cherry picked from commit c190356040f5bba4ea8f5b362c53a4668679c025)
2022-01-26mesa/st: Lowered ucp should still mark rast state dirtyRob Clark2-4/+3
Lowered clip planes should respect the enabled/disabled GL_CLIP_PLANEn (aka GL_CLIP_DISTANCEn), which means updating the rast state as well. Signed-off-by: Rob Clark <robdclark@chromium.org> Acked-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14643> (cherry picked from commit 26d591a6695d20ca912c7a1c4e115a77cae094ce)
2022-01-26iris: Fix and refactor check for clear color being fully zeroKenneth Graunke2-5/+12
I missed updating this code to check res->aux.clear_color_unknown when I added it a while back. While we're here, also refactor this code into a helper function - I'll want to use it in another place shortly. Fixes: e83da2d8e3b ("iris: Don't try to CPU read imported clear color BOs") Reviewed-by: Nanley Chery <nanley.g.chery@intel.com> Reviewed-by: Caio Oliveira <caio.oliveira@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14687> (cherry picked from commit 09072a08030061f16b290984305e4ba09e2ad3fe)
2022-01-26mesa: move GetProgramInterfaceiv as a shader_query functionTapani Pälli5-123/+138
This matches how _mesa_get_program_resourceiv was done and this makes it possible to skip some validation and shader program lookup when calling it from glGetProgramiv. Cc: mesa-stable Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14636> (cherry picked from commit 1b898d78d8d809dfd01a47aae6da355d4b820e84)
2022-01-26mesa: refactor GetProgramiv to use program resource listTapani Pälli2-8/+3
This way we make sure glGetActiveUniform and glGetProgramiv are in sync about active uniform count. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5885 Cc: mesa-stable Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14589> (cherry picked from commit 521ede8451df846045d7bc41f44311ace2fddbb5)
2022-01-26panfrost: Only cull polygonsAlyssa Rosenzweig3-4/+13
The spec says only polygons, not points/lines, should be culled when culling is enabled. The hardware does not make this distinction, so we have to. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Reported-by: Icecream95 <ixn@disroot.org> Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14575> (cherry picked from commit 1e5bb54f597509dbae440f6fbe6739f198a243cb)
2022-01-26panfrost: Use u_reduced_prim for primitive checksAlyssa Rosenzweig2-6/+4
Use a Gallium helper that papers over the differences between primitive types, as required by hardware operation. [Cc'd to mesa-stable for use in the next commit.] Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14575> (cherry picked from commit 3f1abda631f6f98cd48858728db22c874124a858)
2022-01-26util/fossilize_db: Fix double free in error handling.Bas Nieuwenhuizen2-2/+6
If the file ptr is not NULL then foz_destroy will also try to destroy it. Fixes: eca6bb9540d ("util/fossilize_db: add basic fossilize db util to read/write shader caches") Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14671> (cherry picked from commit 51416b1a120e7763ab5cae0dc79031a037023783)
2022-01-26vulkan: return default string for undefined enumAlejandro Piñeiro2-3/+16
Instead of a unreachable. This would avoid an assert on debug builds that uses vkfoo_to_str to print structure types. This will become more common as some tests will start to use VK_STRUCTURE_TYPE_MAX_ENUM to mark structures from unsupported extensions more often. v2 (Jason): * Include enum name on the default message * Handle MAX_ENUM as a special case v3 (Jason): * vk_ObjectType_to_ObjectName don't need to use ${enum.name} Reviewed-by: Jason Ekstrand <jason@jlekstrand.net Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14525> (cherry picked from commit 821c66e50cdaf89ca3e0282967fa17c6fd666308)
2022-01-26zink: Output PackHalf2x16 to uint not floatCharles Baker2-2/+8
Fixes InconsistentSpirv validation errors reporting that PackHalf2x16 outputs uint rather than float. For example the previous code generates the following SPIR-V with PackHalf2x16 output as a float: %2018 = OpExtInst %float %1 PackHalf2x16 %2017 %2019 = OpBitcast %uint %2018 The new code generates: %2018 = OpExtInst %uint %1 PackHalf2x16 %2017 %2019 = OpBitcast %uint %2018 cc: mesa-stable Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14568> (cherry picked from commit 985dae7f41b7f3454793fdcc11cdfb942f26ea55)
2022-01-26mesa: use less temporaries in build_lightingPierre-Eric Pelloux-Prayer2-13/+45
Preallocating temporaries can cause "out of temporaries" error. Switch to on-demand allocation. Growing temp_in_use would be an alternative, but some drivers support less than 64 temps (see PIPE_SHADER_CAP_MAX_TEMPS) so this wouldn't help them. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5777 Fixes: 272acbed0e2 ("mesa: merge STATE_LIGHTPROD parameters") Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14590> (cherry picked from commit 3b4d4c7d8418c40000e25ecbda99f6a10d089b8c)
2022-01-26driconf: enable vs_position_always_invariant for Dirt RallyPierre-Eric Pelloux-Prayer2-1/+6
Cc: mesa-stable Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5648 Reviewed-by: Emma Anholt <emma@anholt.net> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14614> (cherry picked from commit 4e4a2d0f97f3c8a57438133b48346d9fadce6210)
2022-01-26r300: properly initialize new_vs in r300_draw_init_vertex_shaderPavel Ondračka2-3/+5
Fixes the following valgrind warnings: Conditional jump or move depends on uninitialised value(s) at 0x5D1298C: draw_pt_so_emit_prepare (draw_pt_so_emit.c:95) by 0x5D89FD7: llvm_middle_end_prepare (draw_pt_fetch_shade_pipeline_llvm.c:319) by 0x5D13BFF: vsplit_prepare (draw_pt_vsplit.c:229) by 0x5D0D5D8: draw_pt_arrays.isra.0 (draw_pt.c:124) by 0x5D0DA08: draw_instances (draw_pt.c:484) by 0x5D0DEB9: draw_vbo (draw_pt.c:610) by 0x5E847D6: r300_swtcl_draw_vbo (r300_render.c:901) by 0x5D67125: u_vbuf_draw_vbo (u_vbuf.c:1470) by 0x5CFCAD3: cso_multi_draw (cso_context.c:1639) by 0x58FEC37: st_draw_gallium (st_draw.c:186) by 0x5A486BA: _mesa_draw_arrays.part.0 (draw.c:1323) by 0x48B4E27: stub_glDrawArrays (piglit-dispatch-gen.c:12421) Uninitialised value was created by a stack allocation at 0x5E90D3F: r300_draw_init_vertex_shader (r300_vs_draw.c:313) Conditional jump or move depends on uninitialised value(s) at 0x5D175D9: draw_create_vertex_shader (draw_vs.c:70) by 0x5E90E7A: r300_draw_init_vertex_shader (r300_vs_draw.c:366) by 0x5E8751F: r300_create_vs_state (r300_state.c:1950) by 0x594453B: st_create_common_variant (st_program.c:888) by 0x594720C: st_get_common_variant (st_program.c:973) by 0x59484B6: st_precompile_shader_variant (st_program.c:1994) by 0x59484B6: st_finalize_program (st_program.c:2056) by 0x58F0571: st_program_string_notify (st_cb_program.c:128) by 0x5928C9B: st_link_tgsi (st_glsl_to_tgsi.cpp:7514) by 0x5904B53: st_link_shader (st_glsl_to_ir.cpp:178) by 0x58D3E08: _mesa_glsl_link_shader (link_program.cpp:91) by 0x58865C7: link_program (shaderapi.c:1363) by 0x58865C7: link_program_error.part.0 (shaderapi.c:1474) by 0x48DBC5A: stub_glLinkProgram (piglit-dispatch-gen.c:34426) Uninitialised value was created by a stack allocation at 0x5E90D4F: r300_draw_init_vertex_shader (r300_vs_draw.c:313) Based on Filip Gawin's r300: set new_vs.type to PIPE_SHADER_IR_TGSI CC: mesa-stable Reviewed-by: Emma Anholt <emma@anholt.net> Signed-off-by: Pavel Ondračka <pavel.ondracka@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14620> (cherry picked from commit b5b105df96d705e5d0bc381c681be4d8120d815f)
2022-01-26intel/fs: Fix gl_FrontFacing optimization on Gfx12+Ian Romanick2-7/+6
It's not obvious why the (gl_FrontFacing ? -1.0 : 1.0) case was handled different for Gfx12+ than for previous generations, and it's not correct. It tries to negate the result as an integer, and it does this before the mask operation that clears the other bits in the value. When we eventually support dual-SIMD8 dispatch, the other front-facing bit is in g1.6 at bit 15, so similar code should be possible there. Reviewed-by: Matt Turner <mattst88@gmail.com> Fixes: c92fb60007f ("intel/fs/gen12: Implement gl_FrontFacing on gen12+.") Closes: #5876 Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14625> (cherry picked from commit 945fb51fb59d52223b5c0fe90c37d1cba42eb53c)
2022-01-26zink: stop allocating such massive staging regions for buffer mapsMike Blumenkrantz2-4/+4
this would allocate a new stream uploader for every map if the offset was large (e.g., all sparse buffer usage), which almost immediately consumes all vram cc: mesa-stable fixes KHR-GL46.CommonBugs.CommonBug_SparseBuffersWithCopyOps Acked-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14381> (cherry picked from commit d83b52928c46089c16145f8d8c56fcb0c49dbeda)
2022-01-26softpipe: respect !independent_blend_enable for color masks.Emma Anholt4-4/+2
blend_buf is the resolved "are we using independent blending?" index, cbuf is the RT we're drawing to. Cc: mesa-stable. Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14627> (cherry picked from commit 263faa3dfbf6bc55854b4123ce9d225b8f17266e)
2022-01-26llvmpipe: Add get_{driver,device}_uuid implementationsStefan Brüns2-1/+16
Commit 9da15aa3aa94 ("llvmpipe: enable EXT_memory_object(_fd)") enabled the extension, but left this unimplemented. Leaving this unimplemented causes segfaults for anyone trying to retrieve the UUIDs, as the calling code in the state tracker does not check if the function is implemented. This affects e.g. current Wine versions. Set the UUID to all zeros. Although this slightly violates the vulkan specification (since 1.2.146), the UUIDs have to match the ones from lavapipe (lvp_get_physical_device_properties_1_1). Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5865 Fixes: 9da15aa3aa94 ("llvmpipe: enable EXT_memory_object(_fd)") Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de> Reviewed-by: Dave Airlie airlied@redhat.com Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14558> (cherry picked from commit 537a0ee3b7f836564f5b4c05da7b13a27b226c46)
2022-01-26anv: fix missing descriptor copy of bufferview/surfacestate contentLionel Landwerlin2-3/+31
When doing copies of descriptors from one set to another, that contain either a UNIFORM_BUFFER or STORAGE_BUFFER, both the buffer view & surface state are allocated from the source descriptor. Therefore we need to copy their content otherwise we could run into lifecycle issues when the source descriptor is destroyed. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Cc: mesa-stable Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14585> (cherry picked from commit acebea9cf1f8ce2e71f6cd3404d3a2760a2efc66)
2022-01-26zink: check EXT_image_drm_format_modifier for dmabuf supportMike Blumenkrantz2-5/+10
probably fixes https://gitlab.freedesktop.org/mesa/mesa/-/issues/5836 cc: mesa-stable Reviewed-by: Hoe Hao Cheng <haochengho12907@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14595> (cherry picked from commit 29cb1c7c1388269cfce136edf7035c22941d7ed4)
2022-01-26nir: fix nir_tex_instr hash not count is_sparse fieldQiang Yu2-1/+2
This fixes nir_opt_cse miss replace a non-sparse tex instruction with a sparse tex instruction and fail the nir_validate_shader(). Fixes: 3a7972f72a53 ("nir,spirv: add sparse texture fetches") Reviewed-by: Marek Olšák <marek.olsak@amd.com> Signed-off-by: Qiang Yu <yuq825@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14362> (cherry picked from commit 2cee73f0f73c3a33b84ff36768ced6959f6dee99)
2022-01-26nir/unsigned_upper_bound: don't follow 64-bit f2u32()Rhys Perry2-2/+2
Fixes Doom Eternal crash. Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Fixes: 72ac3f60261 ("nir: add nir_unsigned_upper_bound and nir_addition_might_overflow") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14555> (cherry picked from commit d95a0b52e45f8c16e72bdcad99ad02ccca1756c3)
2022-01-26pan/bi: Schedule around blend shader register clobberingAlyssa Rosenzweig2-5/+17
By software ABI, a blend shader is permitted to clobber registers R0-R15. The scheduler needs to be aware of this, to avoid moving a write to one of these registers past the BLEND itself. Otherwise the schedule is invalid. This bug affects GLES3.0, but is rare enough in practice that we had missed it. It requires a fragment shader to write to multiple render targets with attached blend shaders, and have temporaries register allocated to R0-R15 that are not read by the blend shader, but are sunk past the BLEND instruction by the scheduler. Prevents a regression when switching boolean representations on: dEQP-GLES31.functional.shaders.builtin_functions.integer.uaddcarry.uvec4_lowp_fragment Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14577> (cherry picked from commit b8d37eb1bb99b795d370634a8eadcf83cf5a9d7d)
2022-01-26driconf: Fix unhandled tags in static confLepton Wu3-1/+8
A rule with executable_regexp tag would match every executable without this fix and force_glsl_extensions_warn would be always set to true which breaks some dEQP tests. Fixes: 5740ac37014 ("xmlconfig: Add static driconfig support") Reviewed-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14562> (cherry picked from commit d15021435ed546de89668976bdbebc9f9ea200f4)
2022-01-26intel/fs: disable VRS when omask is writtenLionel Landwerlin2-1/+2
As indicated by VkPhysicalDeviceFragmentShadingRatePropertiesKHR::fragmentShadingRateWithShaderSampleMask our implementation will clamp to 1x1 when reading samplemask or writing to samplemask. This fixes vkd3d-proton tests test_sample_mask_dxbc & test_sample_mask_dxil Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Fixes: b6332fc4a8ae58 ("intel/compiler: handle coarse pixel in render target writes descriptors") Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14553> (cherry picked from commit 30a8b8d2df466100aabe0efcf09af714246b2fb3)
2022-01-26zink: remove SpvMemorySemanticsMakeVisibleMask from nir_intrinsic_memory_barrierMike Blumenkrantz2-2/+2
this is invalid since vk memory model isn't used cc: mesa-stable Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14540> (cherry picked from commit f0eb07f98fff0728b9693bf8f136c3edfe785922)
2022-01-26panfrost: Don't double-free when handling error for unsupported GPUCarsten Haitzler2-3/+3
Setting the screen ro member before we checked gpu id means the error case leads to a double-free because screen->ro is set and allocated by parent who hanbdles de-alloc a second time after we destroyed the screen we just created because ro was set. Cc: mesa-stable Signed-off-by: Carsten Haitzler <carsten.haitzler@foss.arm.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14516> (cherry picked from commit 874f4095c5587becf2dc72d9d89bba34eae39112)
2022-01-26util/vbuf: fix buffer translation sizingMike Blumenkrantz2-3/+4
the original change here attempted to fix calculating the maximum bound for the mapped readback buffer by adding the maximum attribute size to the final element used by readback the calculation was erroneous, however, because it instead calculated the maximum offset instead of the size, which would cause a different kind of overrun Fixes: 3c5b7dca30e ("util/vbuf: fix buffer overrun in attribute conversions") fixes #5846 Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14479> (cherry picked from commit 596d2ab0ade9c1712cb25a89b66c980ff0f2eb92)
2022-01-26aux/trace: copy over stream_output_target_offset method from contextMike Blumenkrantz2-1/+3
this can't be traced, so don't crash cc: mesa-stable Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14481> (cherry picked from commit 01709464a4cc142e69d8e1a9893dbabcec7af260)
2022-01-26venus: VkExternalImageFormatProperties is optionalYiwei Zhang2-13/+19
It's optional even if VkPhysicalDeviceExternalImageFormatInfo is there. Fixes: 108f386a612 ("venus: initial support for VkPhysicalDevice commands") Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org> Reviewed-by: Chia-I Wu <olvaffe@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14503> (cherry picked from commit 17b753459ec0bfce490ee83e72d6dd6a29b4bf52)
2022-01-26zink: use even more accurate stride values for query result copiesMike Blumenkrantz2-2/+2
this shouldn't be used at all, but some drivers get it wrong and I don't want to have to fix every driver Fixes: 039ed2de94d ("zink: always use type size for query result copy stride") Reviewed-by: Hoe Hao Cheng <haochengho12907@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14397> (cherry picked from commit d3bb5b5dd18e65dd70177082c0f70c2b51d52d1d)
2022-01-26Revert "zink: when performing an implicit reset, sync qbos"Mike Blumenkrantz2-21/+1
this appeared to fix some sort of bug related to preserving qbo data, but really there shouldn't have been any sort of bug anyway since the qbos all get read back, and thus the data is already preserved instead, it just preserved the query id, which overloaded the pools and crashed This reverts commit 79790e276f61f23217badd80c51add755dfe18ac. fixes #5669 Reviewed-by: Hoe Hao Cheng <haochengho12907@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14397> (cherry picked from commit 2fa1bf60d63ed5d08e296a6ecfc4122d4c3dcb71)
2022-01-26zink: skip readback of qbos with no resultsMike Blumenkrantz2-1/+3
this is a no-op and also crashes Fixes: 93190be1b99 ("zink: rewrite query internals") Reviewed-by: Hoe Hao Cheng <haochengho12907@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14397> (cherry picked from commit b7a4faea9b4191e66aaa3bbf43c763aab5678ce3)
2022-01-26zink: fix availability buffer sizing/copying for xfb queriesMike Blumenkrantz2-6/+7
xfb queries have 2 results, and the availability bit is a 3rd result, so the buffer size has to be at least that big and the copy offset has to reflect the number of xfb results in the src offset cc: mesa-stable Reviewed-by: Hoe Hao Cheng <haochengho12907@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14397> (cherry picked from commit f8d2770737add73ba41e424339b69421e336cda1)
2022-01-26zink: always set number of timestamp results to 1 for internal qboMike Blumenkrantz2-1/+3
timestamp queries don't accumulate results Fixes: 93190be1b99 ("zink: rewrite query internals") Reviewed-by: Hoe Hao Cheng <haochengho12907@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14397> (cherry picked from commit bf9ac4dfcd54f4cc164851af32845b978282e8e2)
2022-01-26.pick_status.json: Mark 58a843ab14e0eecf044a35154da72cdf7ab6f15a as denominatedEric Engestrom1-1/+1
2022-01-26.pick_status.json: Mark d1530a3f3b1625baa42e84cba9844b6eb4ac76ce as denominatedEric Engestrom1-1/+1
2022-01-26.pick_status.json: Mark 1b88777e97f635612c560a2f00d349ea271581b1 as denominatedEric Engestrom1-1/+1
2022-01-26.pick_status.json: Update to 06504fb9e2382e43b889fd6ca642bb785b544d4dEric Engestrom1-0/+5238
2022-01-12VERSION: bump for 21.3.4mesa-21.3.4Eric Engestrom1-1/+1
2022-01-12docs: add release notes for 21.3.4Eric Engestrom1-0/+181
2022-01-12i965: Disable EXT_texture_integer on Gfx4 and Gfx5Ian Romanick1-2/+2
st_init_extensions (src/mesa/state_tracker/st_extensions.c) already enforces the GLSL 1.30 or EXT_gpu_shader4 requirement, so Crocus will already behave this way on this hardware. The EXT_texture_integer spec says: NV_gpu_program4 or EXT_gpu_shader4 is required. Without one of these extensions or GLSL 1.30, it is impossible to read integer values from a texture. The spec also says: This extension does not enforce type consistency for texture accesses or between fragment shaders and the corresponding framebuffer attachments. The results of a texture lookup from an integer texture are undefined: * for fixed-function fragment processing, or * for shader texture accesses expecting floating-point return values. The color components used for per-fragment operations and written into a color buffer are undefined: * for fixed-function fragment processing with an integer color buffer, * for fragment shaders that write floating-point color components to an integer color buffer, or * for fragment shaders that write integer color components to a color buffer with floating point or normalized integer components. So it's really a soft requirement, but also kind of rude to expose the extension without a way to use it properly. Closes: #4497 CC: mesa-stable
2022-01-12v3dv: Hotfix: Rename remaining V3DV_HAS_SURFACE->V3DV_USE_WSI_PLATFORMRoman Stratiienko2-2/+2
This was somehow missed by me and during review. Fixes fcfc4ddfccd5: ("v3dv: Fix V3DV_HAS_SURFACE preprocessor condition") Signed-off-by: Roman Stratiienko <roman.o.stratiienko@globallogic.com> Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14190> (cherry picked from commit 2cbbfd23cec2f5de607af680e415030a0acd6f9f)
2022-01-12radeonsi/gfx10: fix si_texture_get_offset for mipmapped texPierre-Eric Pelloux-Prayer2-5/+11
Pitch can be different per-level so adjust stride and offset. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5792 Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14454> (cherry picked from commit 2f8982df0e7705e1a43e218dd67b684d70c05d31)
2022-01-12zink: use device-local heap for sparse backing allocationsMike Blumenkrantz2-2/+2
backing allocations are real allocations, so they shouldn't be initialized as sparse containers Fixes: 40fdb3212c3 ("zink: add a suballocator") Reviewed-by: Hoe Hao Cheng <haochengho12907@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14394> (cherry picked from commit b6499dff37dd36fe130d4cc93f37ff018907f0ff)
2022-01-12intel/dev: fixup chv workaroundLionel Landwerlin2-2/+2
We're using the wrong helper to get the subslice total count. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Fixes: c24ba6cecbacf2 ("intel/dev: Handle CHV CS thread weirdness in get_device_info_from_fd") Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14492> (cherry picked from commit d6c0d1679185440a716a2fa00fe2da52f75fe7e4)