mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 13:40:11 +01:00
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:
parent
19920f126e
commit
97c948fc2c
2 changed files with 4 additions and 5 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue