+++ /dev/null
-/*
- * Copyright 2017 Advanced Micro Devices, Inc.
- *
- * SPDX-License-Identifier: MIT
- */
-
-#ifndef SI_COMPUTE_H
-#define SI_COMPUTE_H
-
-#include "si_shader.h"
-#include "util/u_inlines.h"
-
-struct si_compute {
- struct si_shader_selector sel;
- struct si_shader shader;
-
- unsigned ir_type;
- unsigned input_size;
-
- int max_global_buffers;
- struct pipe_resource **global_buffers;
-};
-
-void si_destroy_compute(struct si_compute *program);
-
-static inline void si_compute_reference(struct si_compute **dst, struct si_compute *src)
-{
- if (pipe_reference(&(*dst)->sel.base.reference, &src->sel.base.reference))
- si_destroy_compute(*dst);
-
- *dst = src;
-}
-
-#endif /* SI_COMPUTE_H */
extern "C" {
#endif
-struct si_compute;
struct ac_llvm_compiler;
#define ATI_VENDOR_ID 0x1002
struct pb_buffer *gds_oa;
};
+struct si_compute {
+ struct si_shader_selector sel;
+ struct si_shader shader;
+
+ unsigned ir_type;
+ unsigned input_size;
+
+ int max_global_buffers;
+ struct pipe_resource **global_buffers;
+};
+
struct si_sampler_view {
struct pipe_sampler_view base;
/* [0..7] = image descriptor
unsigned num_clears, unsigned types);
void si_init_clear_functions(struct si_context *sctx);
+/* si_compute.c */
+void si_destroy_compute(struct si_compute *program);
+
/* si_compute_blit.c */
#define SI_OP_SYNC_CS_BEFORE (1 << 0)
#define SI_OP_SYNC_PS_BEFORE (1 << 1)
* common helpers
*/
+static inline void si_compute_reference(struct si_compute **dst, struct si_compute *src)
+{
+ if (pipe_reference(&(*dst)->sel.base.reference, &src->sel.base.reference))
+ si_destroy_compute(*dst);
+
+ *dst = src;
+}
+
static inline struct si_resource *si_resource(struct pipe_resource *r)
{
return (struct si_resource *)r;