mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-06 03:40:35 +02:00
zink: Don't include full nir.h where not necessary.
Acked-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Acked-by: Faith Ekstrand <faith.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33439>
This commit is contained in:
parent
b412e29027
commit
e0107f4ffb
3 changed files with 12 additions and 9 deletions
|
|
@ -28,7 +28,7 @@
|
|||
#include <stdint.h>
|
||||
#include <vulkan/vulkan_core.h>
|
||||
|
||||
#include "compiler/nir/nir.h"
|
||||
#include "compiler/glsl_types.h"
|
||||
#include "compiler/shader_enums.h"
|
||||
#include "pipe/p_state.h"
|
||||
|
||||
|
|
@ -100,8 +100,6 @@ zink_image_type(const struct glsl_type *type)
|
|||
return 0;
|
||||
}
|
||||
|
||||
struct nir_shader;
|
||||
|
||||
bool
|
||||
zink_nir_lower_b2b(struct nir_shader *shader);
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
* IN THE SOFTWARE.
|
||||
*
|
||||
*
|
||||
* Authors:
|
||||
* Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
|
||||
*/
|
||||
|
|
@ -35,6 +35,9 @@
|
|||
#include "zink_program.h"
|
||||
#include "zink_screen.h"
|
||||
|
||||
#define XXH_INLINE_ALL
|
||||
#include "util/xxhash.h"
|
||||
|
||||
/* runtime-optimized pipeline state hashing */
|
||||
template <zink_dynamic_state DYNAMIC_STATE>
|
||||
static uint32_t
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
* IN THE SOFTWARE.
|
||||
*
|
||||
*
|
||||
* Authors:
|
||||
* Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
|
||||
*/
|
||||
|
|
@ -29,7 +29,8 @@
|
|||
|
||||
#include <vulkan/vulkan_core.h>
|
||||
|
||||
#include "compiler/nir/nir.h"
|
||||
#include "compiler/nir/nir_defines.h"
|
||||
#include "compiler/nir/nir_shader_compiler_options.h"
|
||||
|
||||
#include "pipe/p_context.h"
|
||||
#include "pipe/p_defines.h"
|
||||
|
|
@ -38,6 +39,7 @@
|
|||
#include "pipebuffer/pb_cache.h"
|
||||
#include "pipebuffer/pb_slab.h"
|
||||
|
||||
#include "util/blob.h"
|
||||
#include "util/disk_cache.h"
|
||||
#include "util/hash_table.h"
|
||||
#include "util/list.h"
|
||||
|
|
@ -100,15 +102,15 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
extern uint32_t zink_debug;
|
||||
extern bool zink_tracing;
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
/** enums */
|
||||
|
||||
/* features for draw/program templates */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue