Skip to content
Snippets Groups Projects
Commit 5b4a5312 authored by Kenneth Graunke's avatar Kenneth Graunke
Browse files

i965: Make brw_cache_item structure private to brw_program_cache.c.


struct brw_cache_item is an implementation detail of the program cache.
We don't need to make those internals available to the entire driver.

Signed-off-by: Kenneth Graunke's avatarKenneth Graunke <kenneth@whitecape.org>
Reviewed-by: default avatarEduardo Lima Mitev <elima@igalia.com>
parent c67a2793
No related branches found
No related tags found
No related merge requests found
......@@ -453,25 +453,6 @@ struct brw_ff_gs_prog_data {
*/
#define SHADER_TIME_STRIDE 64
struct brw_cache_item {
/**
* Effectively part of the key, cache_id identifies what kind of state
* buffer is involved, and also which dirty flag should set.
*/
enum brw_cache_id cache_id;
/** 32-bit hash of the key data */
GLuint hash;
GLuint key_size; /* for variable-sized keys */
GLuint aux_size;
const void *key;
uint32_t offset;
uint32_t size;
struct brw_cache_item *next;
};
struct brw_cache {
struct brw_context *brw;
......
......@@ -55,6 +55,27 @@
#define FILE_DEBUG_FLAG DEBUG_STATE
struct brw_cache_item {
/**
* Effectively part of the key, cache_id identifies what kind of state
* buffer is involved, and also which dirty flag should set.
*/
enum brw_cache_id cache_id;
/** 32-bit hash of the key data */
GLuint hash;
/** for variable-sized keys */
GLuint key_size;
GLuint aux_size;
const void *key;
uint32_t offset;
uint32_t size;
struct brw_cache_item *next;
};
static unsigned
get_program_string_id(enum brw_cache_id cache_id, const void *key)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment