freedreno: bump up FD6_MAX_BORDER_COLORS

Fixes

  $ deqp-gles31 -n 'dEQP-GLES31.functional.texture.border_clamp.*'

on a618/a635.

Fixes: c0fc8d5046 ("freedreno/a6xx: Switch to global bcolor buffer")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20419>
This commit is contained in:
Chia-I Wu 2022-12-22 15:17:59 -08:00
parent 19920f126e
commit 97c948fc2c
2 changed files with 4 additions and 5 deletions

View file

@ -235,11 +235,10 @@ get_bcolor_offset(struct fd_context *ctx, const struct pipe_sampler_state *sampl
}
unsigned idx = fd6_ctx->bcolor_cache->entries;
assert(idx < FD6_MAX_BORDER_COLORS);
if (idx >= FD6_MAX_BORDER_COLORS)
if (idx >= FD6_MAX_BORDER_COLORS) {
mesa_loge("too many border colors");
return 0;
}
entries[idx] = key;

View file

@ -60,7 +60,7 @@ struct PACKED fd6_bcolor_entry {
};
#define FD6_BORDER_COLOR_SIZE sizeof(struct fd6_bcolor_entry)
#define FD6_MAX_BORDER_COLORS 128
#define FD6_MAX_BORDER_COLORS 256
struct fd6_sampler_stateobj {
struct pipe_sampler_state base;