aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* Properly check mmap return valueHanno Böck2020-05-221-1/+1
| | | | Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5150>
* gallium/swr: Fix building swr with MSVCKrzysztof Raszkowski2020-05-221-0/+2
| | | | | | | | Fix building swr with MSVC by turning off UNICODE before including windows.h. Reviewed-by: Jan Zielinski <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5166>
* mesa: Fix double-lock of Shared->FrameBuffers and usage of wrong mutexDanylo Piliaiev2020-05-221-8/+1
| | | | | | | | | Fixes: 7534c536ca0f4b2b123200f421460094034f37a3 Fixes: 8cfb3e4ee57070ff45e7534a986a20c5fd649dc7 Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3024 Signed-off-by: Danylo Piliaiev <[email protected]> Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5160>
* zink: hammer in an explicit wait when retrieving buffer contents for readingErik Faye-Lund2020-05-221-0/+15
| | | | | | | | | this ensures that the buffer returned is synchronized as expected, though it incurs a significant performance hit and will hopefully be improved in future patches Reviewed-by: Erik Faye-Lund <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5120>
* zink: reset query on-demand when beginning a new query from resumeMike Blumenkrantz2020-05-221-0/+1
| | | | | | | | | | | | | | the current query pool implementation expects queries to be reset at the time they're initiated, which means queries started at this point need to also be explicitly reset the zink_begin_query() function can't be reused here or else the query will be double-added to the active list, triggering an infinite loop ref mesa/mesa#3000 Reviewed-by: Erik Faye-Lund <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5120>
* zink: fix vkCmdResetQueryPool usageMike Blumenkrantz2020-05-221-1/+1
| | | | | | | | | | the final parameter here is the number of queries to reset, not the index of the last query, meaning that the value passed needs to be (curr_query + 1) in order to reset the query corresponding to curr_query Reviewed-by: Erik Faye-Lund <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5120>
* zink: flush active queries on destroy and free query objectMike Blumenkrantz2020-05-221-7/+20
| | | | | | | | | | | | | queries with a valid active_list pointer are likely to still be active, and vk spec requires them to have completed prior to being destroyed this isn't completely accurate, as it's currently possible for queries to remain in the active list while not actually being active, but it resolves driver crashes that can occur from destroying a stilll-running query pool object Reviewed-by: Erik Faye-Lund <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5120>
* zink: add SpvId returns to a couple ntv functionsMike Blumenkrantz2020-05-221-2/+3
| | | | | | | this is helpful for debugging Reviewed-by: Erik Faye-Lund <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5120>
* zink: explicitly zero some arrays in ntvMike Blumenkrantz2020-05-221-2/+2
| | | | | | | just to be safe Reviewed-by: Erik Faye-Lund <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5120>
* radeonsi/sdma: remove useless comparePierre-Eric Pelloux-Prayer2020-05-221-4/+3
| | | | | | | | | clang warning: result of comparison of constant 65536 with expression of type 'uint16_t' (aka 'unsigned short') is always true Reviewed-by: Marek Olšák <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5119>
* amdgpu: fix unitialized variablePierre-Eric Pelloux-Prayer2020-05-221-1/+1
| | | | | | | | clang warning: variable 'va_handle' is used uninitialized whenever 'if' condition is false Reviewed-by: Marek Olšák <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5119>
* radeonsi: fix inversed arguments in si_test_gds_memory_managementPierre-Eric Pelloux-Prayer2020-05-221-1/+1
| | | | | | | | | clang warning: implicit conversion from enumeration type 'enum radeon_bo_usage' to different enumeration type 'enum radeon_bo_domain' Reviewed-by: Marek Olšák <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5119>
* amd/addrlib: fix forgotten char -> enum conversionsPierre-Eric Pelloux-Prayer2020-05-221-2/+2
| | | | | | | | | | clang warning: result of comparison of constant 115 with expression of type 'const enum Dim' is always false Fixes: e3e704c7e7e ("amd/addrlib: Use enum instead of sparse chars to identify dimensions") Reviewed-by: Michel Dänzer <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5119>
* glsl: Remove integer matrix support from ↵Ian Romanick2020-05-211-9/+1
| | | | | | | | | | | ir_dereference_array::constant_expression_value It looks like this code has existed since day 1, but I have no idea why. There have never been integer matrices in GLSL. Reviewed-by: Timothy Arceri <[email protected]> Reviewed-by: Sagar Ghuge <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5135>
* freedreno/a5xx: Define the 2D blit UBWC pitch fieldsEric Anholt2020-05-211-0/+2
| | | | | | Syncing up with my changes to envytools for decoding texturator output. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5127>
* freedreno/a5xx: Set MIN_LAYERSZ on 3D textures like we do on a6xx.Eric Anholt2020-05-212-0/+15
| | | | | | | | These fields (TILE_ALL and MIN_LAYERSZ) seem to be the same on a5xx as a6xx, having looked at some UBWC vs non-UBWC texturator cases. Setting MIN_LAYERSZ does fix the 3D fail we see in the CTS. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5127>
* freedreno/a5xx: Add the outline of a unit test for a5xx layout.Eric Anholt2020-05-213-33/+149
| | | | | | | | Includes a few 3D cases from CTS layouts (since I was looking at CTS failures) which do justify that a5xx's 3D layout workaround is actually different from a6xx's. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5127>
* freedreno/fdl: Separate the list of a6xx testcases from the the test code.Eric Anholt2020-05-214-93/+149
| | | | | | I'll be reusing the test code for a5xx. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5127>
* freedreno/a5xx: Move resource layout to fdl.Eric Anholt2020-05-214-106/+152
| | | | | | | | | | | I'm working on fixing the 3D layouts in CI so we can stabilize it, but I wanted unit tests using the texturator scripts to make sure I don't break things. This also makes a5xx and a6xx layout easily comparable again. This is a straightforward move of the code with prsc references replaced by arguments in the style of fdl6. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5127>
* pan/mdg: Eliminate remaining divisions from compilerAlyssa Rosenzweig2020-05-212-5/+12
| | | | | Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5154>
* pan/mdg: Avoid division in printing helpersAlyssa Rosenzweig2020-05-213-4/+16
| | | | | Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5154>
* pan/mdg: Eliminate 64-bit swizzle packing divisionAlyssa Rosenzweig2020-05-211-1/+2
| | | | | Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5154>
* pan/mdg: Eliminate expand_writemask divisionAlyssa Rosenzweig2020-05-212-5/+5
| | | | | Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5154>
* pan/mdg: Cleanup comments that look like divisionAlyssa Rosenzweig2020-05-213-4/+4
| | | | | | | Don't use a /. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5154>
* panfrost: Fix transform feedback typesAlyssa Rosenzweig2020-05-211-15/+2
| | | | | | | Don't assume float for everything. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5152>
* panfrost: Don't set CAN_DISCARD for MFBDAlyssa Rosenzweig2020-05-211-9/+3
| | | | | | | It's likely harmless but let's match the blob. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5124>
* panfrost: Avoid redundant shader executions with mask=0x0Alyssa Rosenzweig2020-05-214-1/+54
| | | | | | | Only works for a few Midgard GPUs, but hey. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5124>
* panfrost: Disable tib read/write when colourmask = 0x0Alyssa Rosenzweig2020-05-213-10/+16
| | | | | | | | There might still be Z/S updates so we can't drop the whole shader but we can shortcircuit the colour pipeline. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5124>
* panfrost: Remove dated comment about leaksAlyssa Rosenzweig2020-05-211-1/+0
| | | | | | | It's been fixed for a while. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5124>
* panfrost: Limit blend shader work countAlyssa Rosenzweig2020-05-212-5/+13
| | | | | | | To 8, but later we should go much lower. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5124>
* panfrost: Allow tiling on RECT texturesAlyssa Rosenzweig2020-05-211-1/+1
| | | | | | | Except for the norm coords bit, they're identical to 2D. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5124>
* panfrost: Allow bpp24 tilingAlyssa Rosenzweig2020-05-212-2/+9
| | | | | | | It's dumb that we have to but it does help RGB8 nontrivially. Alas. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5124>
* panfrost: Don't zero staging buffer for tilingAlyssa Rosenzweig2020-05-211-1/+1
| | | | | | | | It's a little less safe but the memset does take time during initialization. v3d doesn't either, so I think it's ok. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5124>
* panfrost: Don't set PIPE_CAP_VERTEX_BUFFER_STRIDE_4BYTE_ALIGNED_ONLYAlyssa Rosenzweig2020-05-211-4/+0
| | | | | | | | I'm not aware of any reason this might be necessary, let's avoid the translate. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5124>
* panfrost: Fill in SCALED formats to format tableAlyssa Rosenzweig2020-05-211-0/+26
| | | | | Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5124>
* panfrost: Remove deadcodeAlyssa Rosenzweig2020-05-211-2/+0
| | | | | Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5124>
* panfrost: Keep cached BOs mmap'dAlyssa Rosenzweig2020-05-211-17/+5
| | | | | | | | It doesn't make sense to munmap/mmap repeatedly; they're mapped GPU-side anyway. So just munmap on free, which will happen in low-mem regardless. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5124>
* panfrost: Guard experimental fp16 behind debug flagAlyssa Rosenzweig2020-05-212-1/+4
| | | | | Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5151>
* pan/mdg: Pack 8-bit swizzles in 16-bit opsAlyssa Rosenzweig2020-05-211-1/+4
| | | | | | | Let's inch closer to 8-bit. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5151>
* pan/mdg: Implement condense_writemask for 8-bitAlyssa Rosenzweig2020-05-211-2/+11
| | | | | Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5151>
* pan/mdg: Implement vector constant printing for 8-bitAlyssa Rosenzweig2020-05-211-1/+16
| | | | | Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5151>
* pan/mdg: Use shifts instead of division for RA sizesAlyssa Rosenzweig2020-05-211-41/+44
| | | | | | | | | We're only dealing with powers-of-two, so this eliminates potential issues with divisions-by-zero that are otherwise hacked around. Probably faster too. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5151>
* pan/mdg: Pack barriers correctlyAlyssa Rosenzweig2020-05-211-0/+7
| | | | | Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5151>
* pan/mdg: Fix type checking issues with computeAlyssa Rosenzweig2020-05-212-0/+4
| | | | | | | SSBO and barriers. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5151>
* pan/mdg: Separately pack constants to the upper halfAlyssa Rosenzweig2020-05-211-2/+11
| | | | | Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5151>
* pan/mdg: Only combine 16-bit constants to lower halfAlyssa Rosenzweig2020-05-211-3/+15
| | | | | | | We can't swizzle both halves simultaneously. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5151>
* pan/mdg: Factor out mir_adjust_constantAlyssa Rosenzweig2020-05-211-50/+63
| | | | | | | | Each source is semi-independent, we don't need the extra indentation when the logic is already so complex. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5151>
* pan/mdg: Print constant vectors less wrongAlyssa Rosenzweig2020-05-211-5/+13
| | | | | | | | For !32-bit types, we need to pay attention to rep_low/high/half to determine the effective swizzle. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5151>
* pan/mdg: Round up bytemasks when spillingAlyssa Rosenzweig2020-05-211-2/+4
| | | | | | | So we can pack the spills for <32-bit types. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5151>
* pan/mdg: Print mask when dest=0Alyssa Rosenzweig2020-05-211-1/+1
| | | | | | | Forgot this convention differs from Bifrost. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5151>