gallium/radeon: remove unused code - radeon_llvm_util.*
[mesa.git] / src / gallium / drivers / r600 / evergreen_compute.c
index c9643fcf2eeab24986c4aa0a28a296608994cc4c..6dd6e748a1bb7f77e54689c4bff991a3de8cf7fb 100644 (file)
@@ -46,9 +46,6 @@
 #include "evergreen_compute_internal.h"
 #include "compute_memory_pool.h"
 #include "sb/sb_public.h"
-#ifdef HAVE_OPENCL
-#include "radeon/radeon_llvm_util.h"
-#endif
 #include "radeon/radeon_elf_util.h"
 #include <inttypes.h>
 
@@ -242,7 +239,7 @@ static void r600_destroy_shader(struct r600_bytecode *bc)
 }
 
 static void *evergreen_create_compute_state(struct pipe_context *ctx,
-                                           const const struct pipe_compute_state *cso)
+                                           const struct pipe_compute_state *cso)
 {
        struct r600_context *rctx = (struct r600_context *)ctx;
        struct r600_pipe_compute *shader = CALLOC_STRUCT(r600_pipe_compute);
@@ -452,7 +449,7 @@ static void compute_emit_cs(struct r600_context *rctx,
        unsigned i;
 
        /* make sure that the gfx ring is only one active */
-       if (rctx->b.dma.cs && rctx->b.dma.cs->cdw) {
+       if (radeon_emitted(rctx->b.dma.cs, 0)) {
                rctx->b.dma.flush(rctx, RADEON_FLUSH_ASYNC, NULL);
        }