aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* intel/tools: Drop srctype from ipregMatt Turner2020-06-191-1/+1
| | | | | | | | It's unused, and it would cause shift/reduce conflicts after the next patch. Reviewed-by: Sagar Ghuge <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5514>
* intel/tools: Remove unnecessary reg number checkingMatt Turner2020-06-192-10/+1
| | | | | | | | | a0 is the only address register, and cr0 is the only control register, so there's no need to return the register number, espcially since the lexer explicitly consumes "a0" and "cr0". Reviewed-by: Sagar Ghuge <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5514>
* turnip: move enum translation functions to a common headerJonathan Marek2020-06-187-371/+247
| | | | | | | | | | | | | Instead of having these functions sprinkled around the driver (and ending with a duplicated tu6_compare_func for example), move everything to a common header (using the previously unused tu_util.h). Also applied some simplifications: using a cast when the HW enum matches the VK enum, and using a lookup table when it makes sense (which is IMO nicer than the switch case way). Signed-off-by: Jonathan Marek <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5538>
* aco: use the same regclass as the definition for undef phi operandsRhys Perry2020-06-181-3/+3
| | | | | | | | Subdword phis can't have SGPR operands on GFX6-8. Signed-off-by: Rhys Perry <[email protected]> Reviewed-by: Daniel Schürmann <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5544>
* aco: fix edge check with sub-dword temporariesRhys Perry2020-06-182-5/+9
| | | | | | | | | | | | | Fixes RA failure for a parallel-rdp shader on pitcairn. fossil-db (Navi): Totals from 2 (0.00% of 128733) affected shaders: CodeSize: 203656 -> 205724 (+1.02%) Instrs: 32267 -> 32529 (+0.81%) Signed-off-by: Rhys Perry <[email protected]> Reviewed-by: Daniel Schürmann <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5544>
* mesa/main: fix inverted conditionErik Faye-Lund2020-06-181-1/+1
| | | | | | | | | | | I accidentally got one of the conditions wrong here. Sorry for the mixup. See ttps://gitlab.freedesktop.org/mesa/mesa/-/issues/3134 for details. Fixes: b112e62ba48 ("mesa/main: do not allow MESA_ycbcr_texture enums on gles") Reviewed-by: Marek Olšák <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5532>
* nv50/ir/nir: remove image uniform hackKarol Herbst2020-06-181-11/+1
| | | | | Signed-off-by: Karol Herbst <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5480>
* nv50/ir/nir: handle image atomic inc and decKarol Herbst2020-06-181-0/+18
| | | | | | Signed-off-by: Karol Herbst <[email protected]> Reviewed-by: Ben Skeggs <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5480>
* nv50/ir/nir: move away from image_deref intrinsicsKarol Herbst2020-06-182-216/+58
| | | | | | | v2: fix lod source of image operation correctly Signed-off-by: Karol Herbst <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5480>
* nir/lower_images: handle dec and incKarol Herbst2020-06-182-0/+4
| | | | | | | Signed-off-by: Karol Herbst <[email protected]> Reviewed-by: Gert Wollny <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5480>
* nir/lower_images: fix for array of arraysKarol Herbst2020-06-181-2/+9
| | | | | | Signed-off-by: Karol Herbst <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5480>
* st/mesa: lower images when neededKarol Herbst2020-06-181-0/+3
| | | | | | | | | | The "st/pbo download FS" builtin shader uses image derefs, so even with PIPE_CAP_NIR_IMAGES_AS_DEREF set to 0 drivers ended up with those. Signed-off-by: Karol Herbst <[email protected]> Reviewed-by: Gert Wollny <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5480>
* aco: shrink mad_infoRhys Perry2020-06-181-1/+1
| | | | | | | | From 24 bytes to 16 bytes. Signed-off-by: Rhys Perry <[email protected]> Reviewed-by: Daniel Schürmann <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5281>
* aco: make ssa_info::label 64-bitRhys Perry2020-06-181-17/+20
| | | | | | | | We'll probably need these extra bits in the future. Signed-off-by: Rhys Perry <[email protected]> Reviewed-by: Daniel Schürmann <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5281>
* aco: shrink ssa_infoRhys Perry2020-06-181-1/+1
| | | | | | | | Reorder members so that it's 16 bytes instead of 24. Signed-off-by: Rhys Perry <[email protected]> Reviewed-by: Daniel Schürmann <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5281>
* radeon/vcn: bump vcn3.0 encode major version to 1Boyuan Zhang2020-06-181-1/+18
| | | | | | | | | | | And add quality params for this version Signed-off-by: Boyuan Zhang <[email protected]> Signed-off-by: Leo Liu <[email protected]> Reviewed-by: Thong Thai <[email protected]> Reviewed-by: Leo Liu <[email protected]> Reviewed-by: James Zhu <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5501>
* radeon/vcn/enc: Re-write PPS encoding for HEVCBoyuan Zhang2020-06-181-0/+65
| | | | | | | | | | | Due to hardware change on VCN3 Signed-off-by: Boyuan Zhang <[email protected]> Signed-off-by: Leo Liu <[email protected]> Reviewed-by: Thong Thai <[email protected]> Reviewed-by: Leo Liu <[email protected]> Reviewed-by: James Zhu <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5501>
* radeon/vcn: add vcn 3.0 encode supportThong Thai2020-06-185-3/+145
| | | | | | | | Signed-off-by: Thong Thai <[email protected]> Signed-off-by: Leo Liu <[email protected]> Reviewed-by: Boyuan Zhang <[email protected]> Reviewed-by: James Zhu <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5501>
* radeon/vcn/dec: add db_aligned_height to message bufferLeo Liu2020-06-181-0/+4
| | | | | | | | | This is required for Sienna Signed-off-by: Leo Liu <[email protected]> Reviewed-by: Boyuan Zhang <[email protected]> Reviewed-by: James Zhu <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5501>
* radeon/vcn: add Sienna to use internal register offsetLeo Liu2020-06-181-13/+25
| | | | | | | | | And re-group them explicitly Signed-off-by: Leo Liu <[email protected]> Reviewed-by: Boyuan Zhang <[email protected]> Reviewed-by: James Zhu <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5501>
* radeon/vcn: reset the decode flags from message bufferLeo Liu2020-06-181-1/+1
| | | | | | | | | | This flag was never used by VCN previously, and now it's used for feature that is not applied to us. Signed-off-by: Leo Liu <[email protected]> Reviewed-by: Boyuan Zhang <[email protected]> Reviewed-by: James Zhu <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5501>
* aco: fix WQM handling in nested loopsDaniel Schürmann2020-06-181-1/+4
| | | | | | | | | | | | | | | If on a nested loop - the outer loop needs WQM but - the inner loop doesn't need WQM and - the break condition of the inner loop is computed in the outer loop then it could happen that we transitioned to Exact before entering the inner loop which could create an empty exec mask and lead to an infinite loop. Fixes a GPU hang with RDR2 Cc: 20.1 <[email protected]> Reviewed-by: Rhys Perry <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5518>
* st/mesa: account for "loose", per-mipmap level textures in CopyImageSubDataDanylo Piliaiev2020-06-181-2/+4
| | | | | | | | | | | | We may have "loose", per-image gallium resources. The src_image->Level may not match the gallium resource texture level. In such case it is prescribed (in st_AllocTextureImageBuffer) to specify mipmap level as zero. Fixes: f04f13622f3e71bee057d60a6be9c53b92b56cc9 Signed-off-by: Danylo Piliaiev <[email protected]> Reviewed-by: Marek Olšák <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5477>
* virgl: apply bgra dest swizzle and add Portal 2Gurchetan Singh2020-06-181-0/+7
| | | | | | | | | Apply the destination swizzle on GLES games based on HL2 engine. Also add Portal 2 since some people are experiencing issues with that. Reviewed-by: Gert Wollny <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5481>
* turnip: set the API versionJonathan Marek2020-06-183-1/+7
| | | | | | | | | Some CTS tests don't run because of this. Fixes: 91c757b7963f458 ("turnip: use the common code for generating extensions and dispatch tables") Signed-off-by: Jonathan Marek <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5522>
* radv: only requires LLVM 9 for GFX10 if not using ACOSamuel Pitoiset2020-06-182-1/+3
| | | | | | | | In case someone links RADV with LLVM 8 and wants to use ACO. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Daniel Schürmann <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5454>
* Revert "CI: Disable Panfrost Mali-T820 jobs"Neil Armstrong2020-06-181-1/+1
| | | | | | | | | | | This reverts commit 46a32f0b6bf91279d001a4905babe4e50007696e. The lab has recovered health, thus re-enable T820 Panfrost jobs. Acked-by: Michel Dänzer <[email protected]> Reviewed-by: Tomeu Vizoso <[email protected]> Signed-off-by: Neil Armstrong <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4727>
* Revert "CI: Disable Lima jobs due to lab unhealthiness"Neil Armstrong2020-06-181-2/+2
| | | | | | | | | | | This reverts commit adeef43d15092a6910dceb3605f5ee3151dd2c47. The lab has recovered health, thus re-enable Lima jobs. Acked-by: Michel Dänzer <[email protected]> Reviewed-by: Tomeu Vizoso <[email protected]> Signed-off-by: Neil Armstrong <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4727>
* radv: compute CB_SHADER_MASK from the fragment shader outputsSamuel Pitoiset2020-06-183-1/+31
| | | | | | | | | | | The fragment shader doesn't necessarily output the number of components expected by the target format. Fixes new dEQP-VK.draw.output_location.*. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5427>
* radv: make sure to set CB_SHADER_MASK correctly for internal CB operationsSamuel Pitoiset2020-06-181-0/+11
| | | | | | | | It should be always set to 0xf. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5427>
* docs/features: remove driver-list for forward-compatible contextErik Faye-Lund2020-06-181-1/+1
| | | | | This is something that's supported by the Gallium state-tracker, there's nothing to be done per driver here.
* docs/features: update ARB_texture_buffer_object lineErik Faye-Lund2020-06-181-1/+1
| | | | | This extension isn't just exposed in OpenGL 3.1 contexts any longer, and Zink supports it. Let's mark it as such.
* docs/features: mark GL3 as complete for zinkErik Faye-Lund2020-06-181-22/+22
|
* radv: lower discards to demote to workaround a RDR2 game bugSamuel Pitoiset2020-06-181-0/+3
| | | | | | | | | This fixes some sort of LOD issue. Cc: 20.1 <[email protected]> Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Daniel Schürmann <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5525>
* glsl_to_nir: fix vote_any/vote_allRob Clark2020-06-181-3/+4
| | | | | | Signed-off-by: Rob Clark <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5505>
* glsl_to_nir: fix shader_clockRob Clark2020-06-181-1/+0
| | | | | | Signed-off-by: Rob Clark <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5505>
* glsl_to_nir: fix is_helper_invocationRob Clark2020-06-181-1/+0
| | | | | | | Reported-by: Karol Herbst <[email protected]> Signed-off-by: Rob Clark <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5505>
* spirv: drop some dead codeRob Clark2020-06-181-6/+0
| | | | | | | | | | This case is never hit, we don't have a nir intrinsic for this spirv opcode. And when we do, I'm not sure if it would be vectorized or not. So best just to drop this case. Signed-off-by: Rob Clark <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5505>
* spirv: atomic_counter_read_deref is not vectorizedRob Clark2020-06-181-4/+1
| | | | | | | Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3141 Signed-off-by: Rob Clark <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5505>
* turnip: fix renderpass gmem configs when there are too many attachmentsJonathan Marek2020-06-182-2/+5
| | | | | | | | | | | | Since a value of at least "align" is used for nblocks, we might end up with nblocks greater than the number of GMEM blocks remaining. Check for this case and bail out, sysmem rendering will be used for such cases. Fixes some of these tests: dEQP-VK.pipeline.render_to_image.core.*.huge.* Signed-off-by: Jonathan Marek <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5499>
* turnip: fix a sample shading caseJonathan Marek2020-06-181-1/+10
| | | | | | | | | | | | Check pipeline's sampleShadingEnable to enable sample shading. Also fix behavior of gl_Fragcoord with sample shading. Fixes at least: dEQP-VK.pipeline.multisample.min_sample_shading.min_0_5.samples_4.primitive_triangle Signed-off-by: Jonathan Marek <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5499>
* turnip: fix a crash when rasterizerDiscardEnable is setJonathan Marek2020-06-181-25/+18
| | | | | | | | | | | | pMultisampleState needs to be ignored when rasterizerDiscardEnable, so the current code can crash when trying to load msaa_info->pNext. At the same time this simplifies tu_pipeline_shader_key_init a bit, by not calling it for the compute shader case (which doesn't need to set anything in the key struct). Signed-off-by: Jonathan Marek <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5499>
* docs: remind release maintainers to sign the tarballs and publish their keyEric Engestrom2020-06-181-0/+5
| | | | | Signed-off-by: Eric Engestrom <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2857>
* docs: publish our release maintainers' keysEric Engestrom2020-06-187-0/+1318
| | | | | | | | | They should be published to various key servers as well, but this provides the authoritative source for their list. Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2140 Signed-off-by: Eric Engestrom <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2857>
* freedreno/ir3: update obsolete commentRob Clark2020-06-181-4/+10
| | | | | Signed-off-by: Rob Clark <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5458>
* freedreno/computerator: MERGEDREGS updateRob Clark2020-06-182-1/+3
| | | | | Signed-off-by: Rob Clark <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5458>
* turnip: set .MERGEDREGS based on variantRob Clark2020-06-181-1/+2
| | | | | Signed-off-by: Rob Clark <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5458>
* freedreno/a6xx: set .MERGEREGS based on variantRob Clark2020-06-182-6/+12
| | | | | | | | Also set HALFREGFOOTPRINT, since in the non-mergeregs case this will be non-zero. Signed-off-by: Rob Clark <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5458>
* freedreno/ir3: make mergedregs a property of the variantRob Clark2020-06-186-13/+35
| | | | | | | | | | | | Rather than assuming a6xx+ means mergedregs. We can actually (mostly?) do splitregs on a6xx as well. And GS/DS/HS currently require it, which might be papering over a bug, or might be something to do with how chaining shaders works. At any rate, we should at least be consistent, and not have the compiler thinking we are doing mergedregs when we are actually doing splitregs. Signed-off-by: Rob Clark <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5458>
* freedreno/ir3: re-work assembler APIRob Clark2020-06-186-20/+24
| | | | | | | | Just pass thru the variant, since it has everything we need. And will be needed in the next patch. Signed-off-by: Rob Clark <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5458>