aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* pan/bit: Use swizzle helper for roundAlyssa Rosenzweig2020-05-041-9/+5
| | | | | Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4890>
* pan/bit: Remove test namesAlyssa Rosenzweig2020-05-041-84/+19
| | | | | | | We already have the disasm which is authoritative. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4890>
* pan/bit: Interpret v4i8 opsAlyssa Rosenzweig2020-05-041-1/+10
| | | | | Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4890>
* pan/bit: Interpret IMATHAlyssa Rosenzweig2020-05-041-2/+13
| | | | | Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4890>
* pan/bi: Don't schedule <32-bit IMATH to FMAAlyssa Rosenzweig2020-05-041-0/+9
| | | | | | | The ops don't exist. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4890>
* pan/bi: Add SUB.v2i16/SUB.v4i8 opcodes to disasmAlyssa Rosenzweig2020-05-041-0/+2
| | | | | | | Like their ADD counterparts. Only on ADD. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4890>
* pan/bi: Pack ADD IADD/ISUB for 8/16/32Alyssa Rosenzweig2020-05-042-0/+35
| | | | | Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4890>
* pan/bi: Pack FMA IADD/ISUB 32Alyssa Rosenzweig2020-05-042-2/+18
| | | | | Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4890>
* pan/bi: Use IMATH for nir_op_iaddAlyssa Rosenzweig2020-05-043-1/+26
| | | | | Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4890>
* pan/bi: Rename BI_ISUB to BI_IMATHAlyssa Rosenzweig2020-05-046-7/+7
| | | | | | | We'll use this for iadd, etc too which share similar characteristics. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4890>
* freedreno/ir3: Define the bindful uniform/nonuniform desc modes for cat6 a6xx.Eric Anholt2020-05-044-23/+38
| | | | | | | | | These come from the disasm tests, and fix our disasm of blob's uniform/nonuniform cat6 operands. We also now include human-readable names for all the modes we know about (though bindless gets distinguished by its .baseN, like Connor's original disasm). Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4857>
* freedreno/ir3: Sync some new changes from envytools.Eric Anholt2020-05-0411-49/+107
| | | | | | | | With this I also brought in a few new control flow instruction disasm tests that I'd made back when I wrote the disasm test, but which were too far from correct to include until now. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4857>
* freedreno/ir3: Add some more tests of cat6 disasm.Eric Anholt2020-05-041-0/+24
| | | | | | I put these together from traces I had while trying to do LDC for GL. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4857>
* Revert "ac: reassociate FP expressions for inexact instructions for radeonsi"Marek Olšák2020-05-041-9/+0
| | | | | | | | | | | This reverts commit cf2f3c27533d8721abed4cdd4dfb00d4d53e8a0f. It breaks shadows in Unigine Superposition. Fixes: cf2f3c27533d8721abed4cdd4dfb00d4d53e8a0f Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4837>
* pan/bit: Add ICMP testsAlyssa Rosenzweig2020-05-041-0/+23
| | | | | Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4883>
* pan/bit: Add more 16-bit fmod testsAlyssa Rosenzweig2020-05-041-4/+20
| | | | | | | Swizzles and more abs. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4883>
* pan/bit: Add swizzles to round testsAlyssa Rosenzweig2020-05-041-4/+11
| | | | | Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4883>
* pan/bi: Don't pack ICMP on FMAAlyssa Rosenzweig2020-05-041-0/+9
| | | | | Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4883>
* pan/bi: Pack ADD ICMP 16Alyssa Rosenzweig2020-05-042-7/+29
| | | | | Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4883>
* pan/bi: Pack ADD ICMP 32Alyssa Rosenzweig2020-05-041-1/+66
| | | | | Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4883>
* pan/bi: Structify ADD ICMP 16Alyssa Rosenzweig2020-05-041-0/+15
| | | | | Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4883>
* pan/bi: Pack ADD.DISCARDAlyssa Rosenzweig2020-05-041-0/+46
| | | | | Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4883>
* pan/bi: Handle discard/branch in get_component_countAlyssa Rosenzweig2020-05-041-0/+5
| | | | | | | No dest requires special handling. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4883>
* pan/bi: Fuse conditions into discard_ifAlyssa Rosenzweig2020-05-041-0/+16
| | | | | Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4883>
* pan/bi: Add float-only mode to condition fusingAlyssa Rosenzweig2020-05-041-4/+14
| | | | | | | Useful for discards. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4883>
* pan/bi: Emit discard (not if)Alyssa Rosenzweig2020-05-041-0/+18
| | | | | Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4883>
* pan/bi: Handle discard_if in NIR->BIR naivelyAlyssa Rosenzweig2020-05-041-0/+23
| | | | | Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4883>
* pan/bi: Unwrap BRANCH into CONDITIONAL classAlyssa Rosenzweig2020-05-044-46/+26
| | | | | | | | We can simplify the IR considerably and unify more conditions, which gives conditional discard for free. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4883>
* pan/bi: Remove BI_GENERICAlyssa Rosenzweig2020-05-042-10/+7
| | | | | | | Goofy. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4883>
* pan/bi: Structify DISCARDAlyssa Rosenzweig2020-05-042-1/+21
| | | | | Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4883>
* pan/bi: Fix DISCARD ops in disasmAlyssa Rosenzweig2020-05-041-6/+9
| | | | | Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4883>
* pan/bi: Disable CSEL4 emit for nowAlyssa Rosenzweig2020-05-041-0/+4
| | | | | | | | | | We need proper scheduling for 4-src ops to work, so for now disable condition fusing so we cap at 3-src at a performance penalty. A bit of a hack but I'd rather not build hacks into a scheduler that will be rewritten soon anyway. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4883>
* pan/bi: Fix incorrectly flipped swizzleAlyssa Rosenzweig2020-05-041-2/+2
| | | | | Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4883>
* pan/bi: Fix missing swizzleAlyssa Rosenzweig2020-05-041-0/+2
| | | | | Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4883>
* pan/bi: Fix double-abs flippingAlyssa Rosenzweig2020-05-041-1/+1
| | | | | Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4883>
* pan/bi: Set clause type for gl_FragCoord.zAlyssa Rosenzweig2020-05-041-0/+12
| | | | | Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4883>
* pan/bi: Lower gl_FragCoordAlyssa Rosenzweig2020-05-042-0/+86
| | | | | | | We accept a sysval and emit various forms for each component. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4883>
* pan/bi: Passthrough direct ld_var addressesAlyssa Rosenzweig2020-05-041-1/+4
| | | | | | | Don't bother wasting a constant. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4883>
* pan/bi: Print bad instruction on src packing failAlyssa Rosenzweig2020-05-041-2/+5
| | | | | Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4883>
* pan/bi: Futureproof COMBINE lowering against non-u32Alyssa Rosenzweig2020-05-041-2/+5
| | | | | Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4883>
* pan/bi: Abort on unhandled intrinsicsAlyssa Rosenzweig2020-05-041-1/+1
| | | | | Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4883>
* pan/bi: Abort on unknown op packingAlyssa Rosenzweig2020-05-041-7/+7
| | | | | | | We're stable enough this is better than just nop'ing it out. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4883>
* pan/bi: Add clause type for gl_FragCoord.zw loadAlyssa Rosenzweig2020-05-042-0/+2
| | | | | Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4883>
* panfrost: Setup gl_FragCoord as sysval on BifrostAlyssa Rosenzweig2020-05-042-3/+4
| | | | | | | ..rather than a varying. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4883>
* etnaviv: do not use int filter when anisotropic filtering is usedChristian Gmeiner2020-05-044-12/+25
| | | | | | | | | | The blob does not use this combination. This change moves the decision if int filter gets used to state emit time. Fixes: 7aaa0e59086 ("etnaviv: add anisotropic filter support") Signed-off-by: Christian Gmeiner <[email protected]> Reviewed-by: Lucas Stach <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4872>
* etnaviv: fix SAMP_ANISOTROPY register valueChristian Gmeiner2020-05-041-2/+1
| | | | | | | | | | | This caused some serious problems like shredded output, ~1fps and GPU hungs. Fixes: 7aaa0e59086 ("etnaviv: add anisotropic filter support") Reported-by: Lukas F. Hartmann <[email protected]> Tested-by: Lukas F. Hartmann <[email protected]> Signed-off-by: Christian Gmeiner <[email protected]> Reviewed-by: Lucas Stach <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4872>
* vulkan/wsi: Make wsi_swapchain inherit from vk_object_baseJason Ekstrand2020-05-044-26/+19
| | | | | | | | Reviewed-by: Lionel Landwerlin <[email protected]> Acked-by: Kristian H. Kristensen <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Reviewed-by: Samuel Pitoiset <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4690>
* vulkan: Add run-time object type asserts in handle castsJason Ekstrand2020-05-042-2/+22
| | | | | | | | Reviewed-by: Lionel Landwerlin <[email protected]> Acked-by: Kristian H. Kristensen <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Reviewed-by: Samuel Pitoiset <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4690>
* anv: Refactor setting descriptors with immutable samplerJason Ekstrand2020-05-041-9/+6
| | | | | | | Don't call anv_sampler_from_handle if the handle may be invalid. Reviewed-by: Lionel Landwerlin <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4690>
* vulkan,anv: Move the DEFINE_HANDLE_CASTS macros to vk_object.hJason Ekstrand2020-05-042-58/+85
| | | | | | | | | | | | | | | | | | We've already got these duplicated a bunch of places. They should really probably live in common code. The new versions take two more arguments: 1. The struct member which gets you from __driver_type to the vk_object_base. This requires drivers which use this to also use vk_object_base. 2. The VkObjectType enum which represents that object type. Reviewed-by: Lionel Landwerlin <[email protected]> Acked-by: Kristian H. Kristensen <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Reviewed-by: Samuel Pitoiset <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4690>