zink: always clamp NUM_QUERIES to 500
this avoids ooming on some weaker GPUs with big query energy cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23729>
This commit is contained in:
committed by
Marge Bot
parent
0e32de0aed
commit
1ca87a300d
@@ -10,11 +10,7 @@
|
||||
#include "util/u_inlines.h"
|
||||
#include "util/u_memory.h"
|
||||
|
||||
#if DETECT_ARCH_X86_64 || DETECT_ARCH_PPC_64 || DETECT_ARCH_AARCH64 || DETECT_ARCH_MIPS64
|
||||
#define NUM_QUERIES 5000
|
||||
#else
|
||||
#define NUM_QUERIES 500
|
||||
#endif
|
||||
|
||||
struct zink_query_pool {
|
||||
struct list_head list;
|
||||
|
||||
Reference in New Issue
Block a user