radeonsi: remove non-GFX BO priority flags
authorMarek Olšák <marek.olsak@amd.com>
Thu, 12 Jul 2018 04:05:23 +0000 (00:05 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 16 Jul 2018 17:32:33 +0000 (13:32 -0400)
For a later simplification.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/gallium/drivers/radeon/radeon_uvd.c
src/gallium/drivers/radeon/radeon_uvd_enc_1_1.c
src/gallium/drivers/radeon/radeon_vce.c
src/gallium/drivers/radeon/radeon_vcn_dec.c
src/gallium/drivers/radeon/radeon_vcn_enc_1_2.c
src/gallium/drivers/radeon/radeon_winsys.h
src/gallium/drivers/radeonsi/si_debug.c
src/gallium/drivers/radeonsi/si_dma_cs.c

index dbf3c95175c6cb5816b8412aa244960911340365..923216d77f1e5d082884a189e682659adf3bc2a8 100644 (file)
@@ -116,8 +116,7 @@ static void send_cmd(struct ruvd_decoder *dec, unsigned cmd,
        int reloc_idx;
 
        reloc_idx = dec->ws->cs_add_buffer(dec->cs, buf, usage | RADEON_USAGE_SYNCHRONIZED,
-                                          domain,
-                                         RADEON_PRIO_UVD);
+                                          domain, 0);
        if (!dec->use_legacy) {
                uint64_t addr;
                addr = dec->ws->buffer_get_virtual_address(buf);
index 42a9fa9abf0591ecadfe2e9a3e6c62e35a1fb396..ddb219792ae63a8139e45708784fe2cf46dd55c2 100644 (file)
@@ -55,7 +55,7 @@ radeon_uvd_enc_add_buffer(struct radeon_uvd_encoder *enc,
                           enum radeon_bo_domain domain, signed offset)
 {
    enc->ws->cs_add_buffer(enc->cs, buf, usage | RADEON_USAGE_SYNCHRONIZED,
-                          domain, RADEON_PRIO_VCE);
+                          domain, 0);
    uint64_t addr;
    addr = enc->ws->buffer_get_virtual_address(buf);
    addr = addr + offset;
index 6d1b1ff7879a1d11f3494d92b724848bff3b55a8..8972253c7c55140179b51c01d21c07a1830286bd 100644 (file)
@@ -559,7 +559,7 @@ void si_vce_add_buffer(struct rvce_encoder *enc, struct pb_buffer *buf,
        int reloc_idx;
 
        reloc_idx = enc->ws->cs_add_buffer(enc->cs, buf, usage | RADEON_USAGE_SYNCHRONIZED,
-                                          domain, RADEON_PRIO_VCE);
+                                          domain, 0);
        if (enc->use_vm) {
                uint64_t addr;
                addr = enc->ws->buffer_get_virtual_address(buf);
index ed7223bbec5eccf17aafad54182b28ee8c1a8a30..c2e22048cefc881a458c6a3fe5e80ae1d975484a 100644 (file)
@@ -1033,7 +1033,7 @@ static void send_cmd(struct radeon_decoder *dec, unsigned cmd,
        uint64_t addr;
 
        dec->ws->cs_add_buffer(dec->cs, buf, usage | RADEON_USAGE_SYNCHRONIZED,
-                          domain, RADEON_PRIO_UVD);
+                          domain, 0);
        addr = dec->ws->buffer_get_virtual_address(buf);
        addr = addr + off;
 
index 143721211db8417559f3af6c893e2a76f3894c6a..6632451900ebfe1e7c560b4538584b90c9991ccb 100644 (file)
@@ -56,7 +56,7 @@ static void radeon_enc_add_buffer(struct radeon_encoder *enc, struct pb_buffer *
                                                                  signed offset)
 {
        enc->ws->cs_add_buffer(enc->cs, buf, usage | RADEON_USAGE_SYNCHRONIZED,
-                                                                          domain, RADEON_PRIO_VCE);
+                               domain, 0);
        uint64_t addr;
        addr = enc->ws->buffer_get_virtual_address(buf);
        addr = addr + offset;
index 22ec47b9dc8c00551987326f12fc0d6c27d3a025..e9ae1f925c47e4417c6b519227ce62b962e35e81 100644 (file)
@@ -127,11 +127,6 @@ enum radeon_bo_priority {
     RADEON_PRIO_DRAW_INDIRECT,
     RADEON_PRIO_INDEX_BUFFER,
 
-    RADEON_PRIO_VCE = 8,
-    RADEON_PRIO_UVD,
-    RADEON_PRIO_SDMA_BUFFER,
-    RADEON_PRIO_SDMA_TEXTURE,
-
     RADEON_PRIO_CP_DMA = 12,
 
     RADEON_PRIO_CONST_BUFFER = 16,
index 8581228263d313df46b4165d6a86b69bacf9ef65..0e5012b9d32249a1b614ad1b17aa7a5c32273e4f 100644 (file)
@@ -496,10 +496,6 @@ static const char *priority_to_string(enum radeon_bo_priority priority)
                ITEM(IB2),
                ITEM(DRAW_INDIRECT),
                ITEM(INDEX_BUFFER),
-               ITEM(VCE),
-               ITEM(UVD),
-               ITEM(SDMA_BUFFER),
-               ITEM(SDMA_TEXTURE),
                ITEM(CP_DMA),
                ITEM(CONST_BUFFER),
                ITEM(DESCRIPTORS),
index 0308112cbb450c0ed6e27b7716c321e18d2ee22e..3bb769309e3d8ade29d2b948b3337b0068c443f0 100644 (file)
@@ -93,13 +93,11 @@ void si_need_dma_space(struct si_context *ctx, unsigned num_dw,
 
        if (dst) {
                radeon_add_to_buffer_list(ctx, ctx->dma_cs, dst,
-                                         RADEON_USAGE_WRITE,
-                                         RADEON_PRIO_SDMA_BUFFER);
+                                         RADEON_USAGE_WRITE, 0);
        }
        if (src) {
                radeon_add_to_buffer_list(ctx, ctx->dma_cs, src,
-                                         RADEON_USAGE_READ,
-                                         RADEON_PRIO_SDMA_BUFFER);
+                                         RADEON_USAGE_READ, 0);
        }
 
        /* this function is called before all DMA calls, so increment this. */