mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-20 23:00:36 +02:00
nir: Don't include xxhash.h in nir.h, only where it is used.
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com> Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33439>
This commit is contained in:
parent
8260de6170
commit
e75eeaf2bd
8 changed files with 21 additions and 2 deletions
|
|
@ -48,9 +48,7 @@
|
|||
#include "util/u_printf.h"
|
||||
#include "nir_defines.h"
|
||||
#include "nir_shader_compiler_options.h"
|
||||
#define XXH_INLINE_ALL
|
||||
#include <stdio.h>
|
||||
#include "util/xxhash.h"
|
||||
|
||||
#ifndef NDEBUG
|
||||
#include "util/u_debug.h"
|
||||
|
|
|
|||
|
|
@ -26,6 +26,9 @@
|
|||
#include "nir_vla.h"
|
||||
#include "nir.h"
|
||||
|
||||
#define XXH_INLINE_ALL
|
||||
#include "util/xxhash.h"
|
||||
|
||||
/* This function determines if uses of an instruction can safely be rewritten
|
||||
* to use another identical instruction instead. Note that this function must
|
||||
* be kept in sync with hash_instr() and nir_instrs_equal() -- only
|
||||
|
|
|
|||
|
|
@ -26,6 +26,9 @@
|
|||
#include "nir_builder_opcodes.h"
|
||||
#include "nir_intrinsics_indices.h"
|
||||
|
||||
#define XXH_INLINE_ALL
|
||||
#include "util/xxhash.h"
|
||||
|
||||
struct locals_to_regs_state {
|
||||
nir_builder builder;
|
||||
|
||||
|
|
|
|||
|
|
@ -50,6 +50,9 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
|
||||
#define XXH_INLINE_ALL
|
||||
#include "util/xxhash.h"
|
||||
|
||||
struct intrinsic_info {
|
||||
nir_variable_mode mode; /* 0 if the mode is obtained from the deref. */
|
||||
nir_intrinsic_op op;
|
||||
|
|
|
|||
|
|
@ -37,6 +37,9 @@
|
|||
#include "nir_builder.h"
|
||||
#include "nir_vla.h"
|
||||
|
||||
#define XXH_INLINE_ALL
|
||||
#include "util/xxhash.h"
|
||||
|
||||
#define HASH(hash, data) XXH32(&data, sizeof(data), hash)
|
||||
|
||||
static uint32_t
|
||||
|
|
|
|||
|
|
@ -11,6 +11,9 @@
|
|||
#include "tu_image.h"
|
||||
#include "tu_pass.h"
|
||||
|
||||
#define XXH_INLINE_ALL
|
||||
#include "util/xxhash.h"
|
||||
|
||||
/* How does it work?
|
||||
*
|
||||
* - For each renderpass we calculate the number of samples passed
|
||||
|
|
|
|||
|
|
@ -16,6 +16,9 @@
|
|||
#include "tu_device.h"
|
||||
#include "tu_image.h"
|
||||
|
||||
#define XXH_INLINE_ALL
|
||||
#include "util/xxhash.h"
|
||||
|
||||
static void
|
||||
tu_render_pass_add_subpass_dep(struct tu_render_pass *pass,
|
||||
const VkSubpassDependency2 *dep)
|
||||
|
|
|
|||
|
|
@ -22,6 +22,9 @@
|
|||
#include "fd6_screen.h"
|
||||
#include "fd6_texture.h"
|
||||
|
||||
#define XXH_INLINE_ALL
|
||||
#include "util/xxhash.h"
|
||||
|
||||
static void fd6_texture_state_destroy(struct fd6_texture_state *state);
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue