Eric Engestrom
bc943d00aa
travis: autodetect python version instead of hard-coding it
...
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com >
2019-12-21 20:23:08 +00:00
Marek Vasut
45e1443fd8
etnaviv: tgsi: Fix gl_FrontFacing support
...
The GPU presents the state of the hardware front_face in internal
register 0 (i0), the range of which is 0.0f..1.0f.
This patch assigns the fragment shader input to this internal register.
Moreover, based on the internal front_ccw state, the value of the i0
register is inverted accordingly using SET.EQ/SEQ.NE instruction before
being further processed in the shader. This mimics the operation of the
NIR compiler.
Signed-off-by: Marek Vasut <marex@denx.de >
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com >
Reviewed-by: Jonathan Marek <jonathan@marek.ca >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2868 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2868 >
2019-12-21 20:17:27 +01:00
Paul Cercueil
63b33120b7
u_vbuf: Return true in u_vbuf_get_caps if nb of vbufs is below minimum
...
Return true in u_vbuf_get_caps if the number of vertex buffers is below
the minimum required for proper OpenGL 2.0.
Signed-off-by: Paul Cercueil <paul@crapouillou.net >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2807 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2807 >
2019-12-21 18:29:30 +00:00
Paul Cercueil
c6ef79c488
u_vbuf: Regard non-constant vbufs with non-instance elements as free
...
In the case of unroll_indices, we can regard all non-constant
vertex buffers with only non-instance vertex elements as incompatible
and thus free.
Signed-off-by: Paul Cercueil <paul@crapouillou.net >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2807 >
2019-12-21 18:29:30 +00:00
Wladimir J. van der Laan
87a6029ccf
u_vbuf: use single vertex buffer if it's not possible to have multiple
...
Put CONST, VERTEX and INSTANCE attributes into one vertex buffer if
necessary due to hardware constraints.
Signed-off-by: Wladimir J. van der Laan <laanwj@gmail.com >
Signed-off-by: Paul Cercueil <paul@crapouillou.net >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2807 >
2019-12-21 18:29:30 +00:00
Paul Cercueil
18a8c3f7f1
u_vbuf: Only create driver CSO if no incompatible elements
...
Signed-off-by: Paul Cercueil <paul@crapouillou.net >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2807 >
2019-12-21 18:29:30 +00:00
Paul Cercueil
88d041a6b9
u_vbuf: Mark vbufs incompatible if more were requested than HW supports
...
More vertex buffers are used than the hardware supports. In
principle, we only need to make sure that less vertex buffers are
used, and mark some of the latter vertex buffers as incompatible.
For now, mark all vertex buffers as incompatible.
Signed-off-by: Paul Cercueil <paul@crapouillou.net >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2807 >
2019-12-21 18:29:30 +00:00
Wladimir J. van der Laan
5f37e38b81
u_vbuf: add logic to use a limited number of vbufs
...
Make it possible to limit the number of vertex buffers as there exist
GPUs with less then 32 supported vertex buffers.
Signed-off-by: Wladimir J. van der Laan <laanwj@gmail.com >
Signed-off-by: Paul Cercueil <paul@crapouillou.net >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2807 >
2019-12-21 18:29:30 +00:00
Christian Gmeiner
5bd6a5c41b
gallium: add PIPE_CAP_MAX_VERTEX_BUFFERS
...
Add PIPE_CAP_MAX_VERTEX_BUFFERS param, which defaults to 16.
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com >
Signed-off-by: Paul Cercueil <paul@crapouillou.net >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2807 >
2019-12-21 18:29:30 +00:00
David Heidelberg
5343124932
.mailmap: use correct email address
...
Signed-off-by: David Heidelberg <david@ixit.cz >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3190 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3190 >
2019-12-21 17:50:01 +00:00
Paul Cercueil
2bbf8ebadc
kmsro: Extend to include ingenic-drm
...
This enables Mesa to work with Ingenic SoCs through the use of the
ingenic-drm modesetting driver along with the render-only drivers,
such as Etnaviv on the JZ4770 SoC.
Signed-off-by: Paul Cercueil <paul@crapouillou.net >
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com >
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
2019-12-21 18:27:51 +01:00
Stephan Gerhold
4da46a1c3c
kmsro: Add "mcde" entry point
...
ST-Ericsson Ux500 boards use a Mali 400 GPU together with MCDE
("Multi Channel Display Engine"), which is supported by the "mcde"
DRM driver.
Adding an entry point for it in kmsro seems to be enough to make
Lima work - at least kmscube is working correctly.
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Reviewed-by: Linus Walleij <linus.walleij@linaro.org >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3139 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3139 >
2019-12-21 16:43:35 +00:00
Rhys Perry
afe1a8ff5b
aco: fix vgpr alloc granule with wave32
...
We still need to increase the number of physical vgprs
Totals from affected shaders:
SGPRS: 671976 -> 675288 (0.49 %)
VGPRS: 550112 -> 562596 (2.27 %)
Spilled SGPRs: 0 -> 0 (0.00 %)
Spilled VGPRs: 0 -> 0 (0.00 %)
Code Size: 27621660 -> 27606532 (-0.05 %) bytes
Max Waves: 81083 -> 87833 (8.32 %)
Instructions: 5391560 -> 5389031 (-0.05 %)
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com >
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev >
2019-12-21 12:38:42 +01:00
Rhys Perry
01ccd7839c
aco: improve jump threading with wave32
...
Totals from affected shaders:
SGPRS: 748746 -> 748746 (0.00 %)
VGPRS: 636984 -> 636984 (0.00 %)
Spilled SGPRs: 387 -> 387 (0.00 %)
Spilled VGPRs: 15 -> 15 (0.00 %)
Code Size: 61138824 -> 60928620 (-0.34 %) bytes
Max Waves: 48602 -> 48602 (0.00 %)
Instructions: 11967660 -> 11915084 (-0.44 %)
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com >
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev >
2019-12-21 12:38:42 +01:00
Rhys Perry
6ff92f3d68
aco/wave32: fix comparison optimizations
...
Previously, they weren't done in wave32.
Totals from affected shaders:
SGPRS: 507726 -> 508006 (0.06 %)
VGPRS: 450340 -> 450268 (-0.02 %)
Spilled SGPRs: 298 -> 298 (0.00 %)
Spilled VGPRs: 0 -> 0 (0.00 %)
Code Size: 39689708 -> 39384488 (-0.77 %) bytes
Max Waves: 39631 -> 39636 (0.01 %)
Instructions: 7865919 -> 7793650 (-0.92 %)
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com >
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev >
2019-12-21 12:38:42 +01:00
Karol Herbst
4dd08b710b
nv50ir/nir: support vec8 and vec16
...
Signed-off-by: Karol Herbst <kherbst@redhat.com >
2019-12-21 11:00:17 +00:00
Rob Clark
a8ec4082a4
nir+vtn: vec8+vec16 support
...
This introduces new vec8 and vec16 instructions (which are the only
instructions taking more than 4 sources), in order to construct 8 and 16
component vectors.
In order to avoid fixing up the non-autogenerated nir_build_alu() sites
and making them pass 16 src args for the benefit of the two instructions
that take more than 4 srcs (ie vec8 and vec16), nir_build_alu() is has
nir_build_alu_tail() split out and re-used by nir_build_alu2() (which is
used for the > 4 src args case).
v2 (Karol Herbst):
use nir_build_alu2 for vec8 and vec16
use python's array multiplication syntax
add nir_op_vec helper
simplify nir_vec
nir_build_alu_tail -> nir_builder_alu_instr_finish_and_insert
use nir_build_alu for opcodes with <= 4 sources
v3 (Karol Herbst):
fix nir_serialize
v4 (Dave Airlie):
fix serialization of glsl_type
handle vec8/16 in lowering of bools
v5 (Karol Herbst):
fix load store vectorizer
Signed-off-by: Karol Herbst <kherbst@redhat.com >
Reviewed-by: Dave Airlie <airlied@redhat.com >
2019-12-21 11:00:17 +00:00
Karol Herbst
b35e583c17
aco: use NIR_MAX_VEC_COMPONENTS instead of 4
...
Signed-off-by: Karol Herbst <kherbst@redhat.com >
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net >
2019-12-21 11:00:16 +00:00
Karol Herbst
c83b1a4560
nir/serialize: cast swizzle before shifting
...
fixes undefined behaviour with enabled vec16
Signed-off-by: Karol Herbst <kherbst@redhat.com >
Reviewed-by: Dave Airlie <airlied@redhat.com >
2019-12-21 11:00:16 +00:00
Dave Airlie
e6b2af56cb
llvmpipe: switch to NIR by default
...
Add LP_DEBUG=tgsi_ir (tgsi already taken) to fallback to TGSI paths.
Disable NIR_VALIDATE in CI (Michel/Eric acked)
Reviewed-by: Roland Scheidegger <sroland@vmware.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2303 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2303 >
2019-12-21 13:07:17 +10:00
Dave Airlie
c717ac1247
gallivm/nir: wrap idiv to avoid divide by 0 (v2)
...
This code is taken from the TGSI paths, and should fix the regression
seens with GLES2
v2: use the udiv path which has d3d10 defined return.
Reviewed-by: Roland Scheidegger <sroland@vmware.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2303 >
2019-12-21 13:06:58 +10:00
Marek Olšák
7d65614422
ac/surface: fix an assertion failure on gfx9 in CMASK computation
...
addrlib only allows the 2D resource type with CMASK.
Fixes: 69ea473eeb
"amd/addrlib: update to the latest version"
Reviewed-by: Dave Airlie <airlied@redhat.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3187 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3187 >
2019-12-20 22:57:08 +00:00
Afonso Bordado
3e1e4ad13d
pan/midgard: Optimize comparisions with similar operations
...
Optimizes comparisions by removing the invert flag on operands
which we can prove to be equal without the invert.
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3036 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3036 >
2019-12-20 22:36:06 +00:00
Erico Nunes
8e9e94d084
lima: set shader caps to optimize control flow
...
With these new caps, nir is able to unroll loops and optimize
conditionals much more efficiently in both gpit and ppir.
panfrost and vc4 were used as reference for the values.
Signed-off-by: Erico Nunes <nunes.erico@gmail.com >
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3176 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3176 >
2019-12-20 20:59:15 +01:00
Erico Nunes
4322656dee
lima/ppir: remove assert on ppir_emit_tex unsupported feature
...
This assert causes testing tools such as shaderdb to abort on some test
cases. This is an unsupported feature and not a compiler bug. The
compilation error is already propagated correctly, so we can remove the
assert to allow testing tools to run to completion.
Signed-off-by: Erico Nunes <nunes.erico@gmail.com >
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3176 >
2019-12-20 20:58:50 +01:00
Erico Nunes
d56710ab82
lima/ppir: fix lod bias src
...
ppir has some code that operates on all ppir_src variables, and for that
uses ppir_node_get_src.
lod bias support introduced a separate ppir_src that is inaccessible by
that function, causing it to be missed by the compiler in some routines.
Ultimately this caused, in some cases, a bug in const lowering:
.../pp/lower.c:42: ppir_lower_const: Assertion `src != NULL' failed.
This fix moves the ppir_srcs in ppir_load_texture_node together so they
don't get missed.
Fixes: 721d82cf06
lima/ppir: add lod-bias support
Signed-off-by: Erico Nunes <nunes.erico@gmail.com >
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3185 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3185 >
2019-12-20 19:39:55 +00:00
Andreas Baierl
1b0743dbb6
lima: Fix dump file creation
...
Otherwise lima_dump_file_next() always opens a new file and creates the
dumps regardless of what the environment variables say.
Fixes d71cd245d7
('lima: Rotate dump files after each finished pp frame')
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com >
Signed-off-by: Andreas Baierl <ichgeh@imkreisrum.de >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3179 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3179 >
2019-12-20 17:44:12 +01:00
Pierre-Eric Pelloux-Prayer
9c2a3b4e75
radeon/vcn2: enable rate control for hevc encoding
...
Based on b0626c1f30
("radeon/vcn: enable rate control for hevc encoding").
Reviewed-by: Boyuan Zhang <boyuan.zhang@amd.com >
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2225
Fixes: 587b9c5dae
("radeon/vcn: implement vcn 2.0 encode")
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3134 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3134 >
2019-12-20 16:51:53 +01:00
Samuel Pitoiset
02dd1fb859
radv: rely on pipeline layout when creating push descriptors with template
...
descriptorSetLayout should be ignored for push descriptors. While
we are it, also ignore pipelineBindPoint.
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2210
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3180 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3180 >
2019-12-20 13:41:29 +01:00
Marek Vasut
f51ee564f5
etnaviv: Replace bitwise OR with logical OR
...
The test here is testing whether either variable is non-zero.
While currently the test works fine, it's fragile. Replace it
with logical OR to avoid the fragility.
Signed-off-by: Marek Vasut <marex@denx.de >
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com >
2019-12-20 13:15:37 +01:00
Christian Gmeiner
6e75f2172b
etnaviv: update resource status after flushing
...
Currently piglit spec@arb_occlusion_query@occlusion_query_conform
spins for ever as the resource status is never reset. See
etna_hw_get_query_result(..) for more details.
Fixes: 1456aa61cc
("etnaviv: Rework resource status tracking")
CC: <mesa-stable@lists.freedesktop.org >
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com >
Tested-by: Marek Vasut <marex@denx.de >
2019-12-20 12:43:23 +01:00
Ross Zwisler
cabcbb4db0
intel: limit shader geometry on BDW GT1
...
Similar to the SKL GT1 fix introduced here:
b1ba7ffdbd
we need to limit the .urb.max_entries[MESA_SHADER_GEOMETRY] on BDW GT1
to address failures in these two tests:
dEQP-GLES31.functional.geometry_shading.layered.render_with_default_layer_3d
dEQP-GLES31.functional.geometry_shading.layered.render_with_default_layer_2d_array
The value 690 was found via bisection. 691 is the actual max on the
hardware I'm using, but 690 seemed like a nice round number.
Signed-off-by: Ross Zwisler <zwisler@google.com >
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3173 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3173 >
2019-12-20 10:47:52 +00:00
Alyssa Rosenzweig
c57337bbd3
pan/midgard: Lower txd with lower_tex
...
This is a hack since we do have native gradient stuff, but for the
moment I'm more interested in conformance and the lowered code is good
enough. Fixes
dEQP-GLES3.functional.shaders.texture_functions.texturegrad.sampler2d_fixed_fragment
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3169 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3169 >
2019-12-20 09:10:39 +01:00
Alyssa Rosenzweig
da73651da4
pan/midgard: Fix crash with txs
...
This regressed since we implemented RECT textures natively, oops.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3169 >
2019-12-20 09:10:36 +01:00
Alyssa Rosenzweig
ccbc9a4e67
pan/midgard: Implement textureOffset for 2D textures
...
Fixes dEQP-GLES3.functional.shaders.texture_functions.textureoffset.sampler2d_fixed_fragment.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3169 >
2019-12-20 09:10:26 +01:00
Samuel Pitoiset
2eef9e050f
radv: ignore pColorBlendState if rasterization is disabled
...
Or if the subpass has no color attachments.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3167 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3167 >
2019-12-20 08:21:02 +01:00
Samuel Pitoiset
021c7b5309
radv: tidy up radv_pipeline_init_blend_state()
...
This is needed for the next commit because pColorBlendState can
actually be NULL but some fields might have to be initialized
(eg. alpha to coverage with no color attachments).
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3167 >
2019-12-20 08:20:58 +01:00
Samuel Pitoiset
ebc7a77869
radv: ignore pDepthStencilState if rasterization is disabled
...
Or if the subpass has no depth stencil attachment.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3167 >
2019-12-20 08:20:55 +01:00
Samuel Pitoiset
ce67e41535
radv: ignore pTessellationState if the pipeline doesn't use tess
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3167 >
2019-12-20 08:20:52 +01:00
Samuel Pitoiset
7735f314b7
radv: ignore pMultisampleState if rasterization is disabled
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3167 >
2019-12-20 08:20:49 +01:00
Samuel Pitoiset
589bfcbde3
radv: init a default multisample state for the resolve FS path
...
pMultisampleState must be a valid pointer.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3167 >
2019-12-20 08:20:44 +01:00
Caio Marcelo de Oliveira Filho
4fbc99c124
spirv: Implement SPV_KHR_non_semantic_info
...
Do nothing for OpExtInst from extended instruction sets that name
start with "NonSemantic.".
Since they can be used within the "preamble" to annotate global
decorations, also don't stop iterating when one of them is found.
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3154 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3154 >
2019-12-19 22:49:39 -08:00
Jonathan Marek
13adce2845
turnip: disable B8G8R8 vertex formats
...
Looks like swap doesn't work as expected on these, disable them.
Signed-off-by: Jonathan Marek <jonathan@marek.ca >
Reviewed-by: Eric Anholt <eric@anholt.net >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3170 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3170 >
2019-12-19 19:03:02 -05:00
Jonathan Marek
54f72c83d6
util/format: add missing vulkan formats
...
Add some missing vulkan formats to util/format, this solves all the missing
pipe format cases for the formats that turnip supports.
Signed-off-by: Jonathan Marek <jonathan@marek.ca >
Reviewed-by: Eric Anholt <eric@anholt.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3170 >
2019-12-19 19:03:02 -05:00
Jonathan Marek
b9d4c10e4b
turnip: minor warning fixes
...
Signed-off-by: Jonathan Marek <jonathan@marek.ca >
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3177 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3177 >
2019-12-19 23:21:01 +00:00
Andreas Baierl
d71cd245d7
lima: Rotate dump files after each finished pp frame
...
This rotates the dump files like the mali-syscall-tracker does.
After each finished pp frame a new file is generated. They are
numbered like lima.dump.0000, lima.dump.0001 ...
The filename and path can be given with the new environment
variable LIMA_DUMP_FILE.
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com >
Signed-off-by: Andreas Baierl <ichgeh@imkreisrum.de >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3175 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3175 >
2019-12-19 23:53:22 +01:00
Vasily Khoruzhick
039f3f6adb
lima: drop suballocator
...
Since we're using a separate per-draw BO for GP outputs we don't
need suballocator anymore.
Reviewed-by: Erico Nunes <nunes.erico@gmail.com >
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3158 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3158 >
2019-12-19 14:28:32 -08:00
Vasily Khoruzhick
9f72d7195a
lima: use single BO for GP outputs
...
Varyings, gl_Position and gl_PointSize are all GP outputs, so we
can use a single BO for them all. Also that allows us to get rid
of suballocator.
Reviewed-by: Erico Nunes <nunes.erico@gmail.com >
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3158 >
2019-12-19 14:28:32 -08:00
Jonathan Marek
06ae0674fd
nir: fix assign_io_var_locations for vertex inputs
...
Also fixes fragment inputs using the wrong "base" value (which was working
only because FRAG_RESULT_DATA0 is less than VARYING_SLOT_VAR0)
Signed-off-by: Jonathan Marek <jonathan@marek.ca >
Reviewed-by: Eric Anholt <eric@anholt.net >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3108 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3108 >
2019-12-19 21:26:52 +00:00
Jonathan Marek
e9a32af3bf
turnip: implement secondary command buffers
...
Uses a new "tu_cs_add_entries" function because tu_cs_emit_call doesn't
work inside draw_cs (which is already called by tu_cs_emit_call).
Signed-off-by: Jonathan Marek <jonathan@marek.ca >
Reviewed-by: Eric Anholt <eric@anholt.net >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3075 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3075 >
2019-12-19 20:42:08 +00:00