mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-20 00:28:08 +02:00
This replaces all full lisence headers with SPDX identifiers and generally makes things more consistent. I've also dropped the few remaining author tags. If someone wants to know who wrote a bit of code, `git blame` is going to be way more accurate than author tags anyway. Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com> Acked-by: Boris Brezillon <boris.brezillon@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39397>
34 lines
978 B
C
34 lines
978 B
C
/*
|
|
* Copyright (c) 2020 Collabora, Ltd.
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
#ifndef H_PAN_MINMAX_CACHE
|
|
#define H_PAN_MINMAX_CACHE
|
|
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
#include <stddef.h>
|
|
|
|
#define PANFROST_MINMAX_SIZE 64
|
|
|
|
struct pan_minmax_cache {
|
|
uint64_t keys[PANFROST_MINMAX_SIZE];
|
|
uint64_t values[PANFROST_MINMAX_SIZE];
|
|
unsigned size;
|
|
unsigned index;
|
|
};
|
|
|
|
bool pan_minmax_cache_get(struct pan_minmax_cache *cache, unsigned index_size,
|
|
unsigned start, unsigned count, unsigned *min_index,
|
|
unsigned *max_index);
|
|
|
|
void pan_minmax_cache_add(struct pan_minmax_cache *cache, unsigned index_size,
|
|
unsigned start, unsigned count, unsigned min_index,
|
|
unsigned max_index);
|
|
|
|
void pan_minmax_cache_invalidate(struct pan_minmax_cache *cache,
|
|
unsigned index_size, size_t offset,
|
|
size_t size);
|
|
|
|
#endif
|