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
Jonathan Marek
85fff42d08
turnip: compute gmem offsets at renderpass creation time
...
This makes it easier to implement secondary command buffers, since we no
longer need to know the render area to set the gmem offsets for input
attachments and CmdClearAttachments.
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/3075 >
2019-12-19 20:42:08 +00:00
Jonathan Marek
f81c41a812
turnip: emit_compute_driver_params fixes
...
Offset was wrong, it is in vec4 not dwords.
There's a hole between DP_NUM_WORK_GROUPS_Z and DP_LOCAL_GROUP_SIZE_X so
use the IR3 enums.
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/3162 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3162 >
2019-12-19 15:13:40 -05:00
Jonathan Marek
bb134c5316
turnip: emit base instance vs driver param
...
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/3162 >
2019-12-19 15:13:40 -05:00
Jonathan Marek
a3a70588c0
freedreno/ir3: support load_base_instance
...
Not supported by hardware, uses same mechanism as base vertex.
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/3162 >
2019-12-19 15:13:40 -05:00
Jonathan Marek
5c17d9b9ca
freedreno/registers: document vertex/instance id offset bits
...
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/3162 >
2019-12-19 15:13:40 -05:00
Neha Bhende
83ad2e5084
st/mesa: release tgsi tokens for shader states
...
Since we are using st_common_variant while creating variant for vertext
program, we can release tokens created in st_create_vp_variant which
are already stored in respective states.
This fix memory leak found with piglit tests
Fixes bc99b22a30
('st/mesa: use a separate VS variant for the draw module')
Reviewed-by: Charmaine Lee <charmainel@vmware.com >
Signed-off-by: Marek Olšák <marek.olsak@amd.com >
2019-12-19 14:40:08 -05:00
Juan A. Suarez Romero
7f821289cb
Revert "nir/lower_double_ops: relax lower mod()"
...
This reverts commit 8172b1fa03
.
This commit was done taking in account Vulkan spec, but did not realize
it was affecting OpenGL too.
Closes : #2252
2019-12-19 20:01:16 +01:00
Kristian H. Kristensen
a4db9a1512
freedreno/a6xx: Set up multisample sysmem MRTs correctly
...
We had an extra factor of num_samples in the stride.
Reviewed-by: Eric Anholt <eric@anholt.net >
Signed-off-by: Kristian H. Kristensen <hoegsberg@google.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2848 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2848 >
2019-12-19 09:56:05 -08:00
Kristian H. Kristensen
e688a16e2b
freedreno/a6xx: Rewrite compressed blits in a helper function
...
Similar to how we handle zs blits.
Reviewed-by: Eric Anholt <eric@anholt.net >
Signed-off-by: Kristian H. Kristensen <hoegsberg@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2848 >
2019-12-19 09:56:05 -08:00
Kristian H. Kristensen
f8c0ea61e4
freedreno/a6xx: Move handle_rgba_blit() up
...
If we move this function up, we don't have to forward declare it.
Reviewed-by: Eric Anholt <eric@anholt.net >
Signed-off-by: Kristian H. Kristensen <hoegsberg@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2848 >
2019-12-19 09:56:05 -08:00
Kristian H. Kristensen
183d482f7f
freedreno/a6xx: Handle srgb blits on the blitter
...
Reviewed-by: Eric Anholt <eric@anholt.net >
Signed-off-by: Kristian H. Kristensen <hoegsberg@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2848 >
2019-12-19 09:56:05 -08:00
Kristian H. Kristensen
3a18e5d420
freedreno/a6xx: Use A6XX_SP_2D_SRC_FORMAT_MASK macro
...
Reviewed-by: Eric Anholt <eric@anholt.net >
Signed-off-by: Kristian H. Kristensen <hoegsberg@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2848 >
2019-12-19 09:56:05 -08:00
Kristian H. Kristensen
e4c2bb6a93
freedreno/a6xx: RB6_R8G8B8 is actually 32 bit RGBX
...
Reviewed-by: Eric Anholt <eric@anholt.net >
Signed-off-by: Kristian H. Kristensen <hoegsberg@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2848 >
2019-12-19 09:56:05 -08:00
Kristian H. Kristensen
8089fb2e62
freedreno/a6xx: Use blitter for resolve blits
...
We have a SAMPLES_AVERAGE bit that does what we need for resolving
multisample buffers - let's use it.
Reviewed-by: Eric Anholt <eric@anholt.net >
Signed-off-by: Kristian H. Kristensen <hoegsberg@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2848 >
2019-12-19 09:56:05 -08:00
Kristian H. Kristensen
1d7267fc91
freedreno/a6xx: Add fd_resource_swap() helper
...
Reviewed-by: Eric Anholt <eric@anholt.net >
Signed-off-by: Kristian H. Kristensen <hoegsberg@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2848 >
2019-12-19 09:56:05 -08:00
Kristian H. Kristensen
e0ebaa819d
freedreno/a6xx: Pick blitter swap based on resource tiling
...
The linear levels in a tiled resource are stored in the canonical
swap, WZYX. We need to pick the swap based on whether or not the
resource is tiled, not whether the the level in question is tiled.
Reviewed-by: Eric Anholt <eric@anholt.net >
Signed-off-by: Kristian H. Kristensen <hoegsberg@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2848 >
2019-12-19 09:56:05 -08:00
Kristian H. Kristensen
b59222640e
freedreno/a6xx: Program sampler swap based on resource tiling
...
It doesn't matter whether or not the level in question is linear.
Reviewed-by: Eric Anholt <eric@anholt.net >
Signed-off-by: Kristian H. Kristensen <hoegsberg@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2848 >
2019-12-19 09:56:05 -08:00
Kristian H. Kristensen
a2f6c44a1c
freedreno: Add debug flag for forcing linear layouts
...
Reviewed-by: Eric Anholt <eric@anholt.net >
Signed-off-by: Kristian H. Kristensen <hoegsberg@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2848 >
2019-12-19 09:56:05 -08:00
Kristian H. Kristensen
d908a2ab18
freedreno/a6xx: Make DEBUG_BLIT_FALLBACK only dump fallbacks
...
Use new macro, DEBUG_BLIT, for dumping all blits.
Reviewed-by: Eric Anholt <eric@anholt.net >
Signed-off-by: Kristian H. Kristensen <hoegsberg@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2848 >
2019-12-19 09:56:05 -08:00
Jonathan Marek
fe4a8df9a8
freedreno/ir3: fix vertex shader sysvals with pre_assign_inputs
...
The first pre_assign_inputs loop doesn't pre-assign sysvals, so skip the
second part for sysvals.
The sysvals don't need to be pre-assigned since the state for those isn't
shared between binning / nonbinning shaders.
Fixes assert failures in cases where the sysvals didn't end up in the same
registers for binning / nonbinning.
Signed-off-by: Jonathan Marek <jonathan@marek.ca >
Reviewed-by: Rob Clark <robdclark@gmail.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3168 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3168 >
2019-12-19 11:31:12 -05:00