mesa/src
Rob Clark fcecdcd822 freedreno/gmem: fix nbins_x/y mismatch
`layout_gmem()` recalculates the # of bins in x/y dimensions after
aligning the bin width/height to required dimensions.  Because of this,
the resulting gmem config could have fewer bins in either dimension.
But the tile/bin layout and the pipe assignment logic were still using
the original values.  Which could result in extraneous bins with a
width and/or height of zero.

Because the gmem rendering code uses `gmem->bin_w`/`h` to determine
the number of bins, this could result in some zero size bins being
executed, while later valid bins are skipped.  Which can leave un-
rendered portions of the screen (generally lower-right).

To fix this, be sure to use `gmem->bin_w`/`h` rather than the local
variables.

Fixes: 1bd38746d5 ("freedreno/gmem: rework gmem layout algo")
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5189>
2020-05-26 19:29:34 +00:00
..
amd amd: replace SH -> SA (shader array) in comments 2020-05-26 06:00:54 -04:00
broadcom v3d/tex: use TMUSLOD register if possible 2020-05-11 23:52:46 +00:00
compiler nir: fix lowering to scratch with boolean access 2020-05-26 18:54:17 +00:00
drm-shim drm-shim: silence warnings 2020-04-30 11:32:54 +03:00
egl EGL: sync headers with Khronos 2020-05-25 14:06:38 +00:00
etnaviv etnaviv: drm: Normalize nano seconds 2020-05-10 07:32:12 +00:00
freedreno freedreno: Use explicit *_NONE enum for undefined formats 2020-05-26 18:35:03 +00:00
gallium freedreno/gmem: fix nbins_x/y mismatch 2020-05-26 19:29:34 +00:00
gbm gbm/dri: Propagate queryDmaBufModifiers return value 2020-04-16 10:19:35 +00:00
getopt
glx glx: omit loader_loader() for macOS 2020-04-15 11:37:21 +00:00
gtest gtest: Update to 1.10.0 2020-04-20 11:57:11 +00:00
hgl scons: Prune out unnecessary targets. 2020-03-30 13:38:01 +00:00
imgui meson: drop intel_ prefix on imgui_core 2019-12-10 15:16:02 +00:00
intel tree-wide: fix deprecated GitLab URLs 2020-05-23 15:33:50 +00:00
loader loader: fallback to kernel name, if PCI fails 2020-04-01 16:57:22 +01:00
mapi glthread: stop using GLenum16 to get correct GL errors for out-of-bounds enums 2020-05-13 20:10:42 +00:00
mesa glsl_to_tgsi: add fallthrough comments 2020-05-26 10:15:17 +00:00
panfrost pan/mdg: Allow DCE on ld_color_buffer masks 2020-05-22 18:05:14 +00:00
util util: delete fnv1a hash function 2020-05-25 19:41:09 +00:00
vulkan util/format: translate 422_UNORM and 420_UNORM vulkan formats 2020-05-20 13:22:12 +00:00
meson.build remove final imports.h and imports.c bits 2020-04-21 11:09:04 -07:00
SConscript scons: Prune out unnecessary targets. 2020-03-30 13:38:01 +00:00