radeon: rename has_uvd info to has_hw_decode
authorLeo Liu <leo.liu@amd.com>
Mon, 17 Apr 2017 16:14:00 +0000 (12:14 -0400)
committerLeo Liu <leo.liu@amd.com>
Thu, 25 May 2017 15:40:20 +0000 (11:40 -0400)
Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
src/amd/common/ac_gpu_info.c
src/amd/common/ac_gpu_info.h
src/gallium/drivers/r600/r600_pipe.c
src/gallium/drivers/radeon/r600_pipe_common.c
src/gallium/drivers/radeonsi/si_pipe.c
src/gallium/winsys/radeon/drm/radeon_drm_winsys.c

index 0b4933e174bf4a10dd314625d95d033769fff3c6..56645c4863290d239fa55b499c1203fe545c3e05 100644 (file)
@@ -241,7 +241,7 @@ bool ac_query_gpu_info(int fd, amdgpu_device_handle dev,
        info->max_shader_clock = amdinfo->max_engine_clk / 1000;
        info->max_se = amdinfo->num_shader_engines;
        info->max_sh_per_se = amdinfo->num_shader_arrays_per_engine;
-       info->has_uvd = uvd.available_rings != 0;
+       info->has_hw_decode = uvd.available_rings != 0;
        info->uvd_fw_version =
                uvd.available_rings ? uvd_version : 0;
        info->vce_fw_version =
index 3785eb4d164e41bafe38708cadc4ba12dc5200cd..3f7ade1a0bb18304c8740773afec0290450d2b6b 100644 (file)
@@ -55,7 +55,7 @@ struct radeon_info {
        bool                        has_dedicated_vram;
        bool                        has_virtual_memory;
        bool                        gfx_ib_pad_with_type2;
-       bool                        has_uvd;
+       bool                        has_hw_decode;
        uint32_t                    num_sdma_rings;
        uint32_t                    num_compute_rings;
        uint32_t                    uvd_fw_version;
index fd01672c1d16804fb7fc9cfd53843aca6ed5585a..2ed6880d590109e3f9983e6db609c5154312bba6 100644 (file)
@@ -137,7 +137,7 @@ static struct pipe_context *r600_create_context(struct pipe_screen *screen,
 
        r600_init_blit_functions(rctx);
 
-       if (rscreen->b.info.has_uvd) {
+       if (rscreen->b.info.has_hw_decode) {
                rctx->b.b.create_video_codec = r600_uvd_create_decoder;
                rctx->b.b.create_video_buffer = r600_video_buffer_create;
        } else {
index 5460daabbb4e49bd0d5b32eea0bd9de4d02dac88..2c0cadb03095bd112c879f24922019890d9af47b 100644 (file)
@@ -1351,7 +1351,7 @@ bool r600_common_screen_init(struct r600_common_screen *rscreen,
        rscreen->b.resource_from_user_memory = r600_buffer_from_user_memory;
        rscreen->b.query_memory_info = r600_query_memory_info;
 
-       if (rscreen->info.has_uvd) {
+       if (rscreen->info.has_hw_decode) {
                rscreen->b.get_video_param = rvid_get_video_param;
                rscreen->b.is_video_format_supported = rvid_is_format_supported;
        } else {
@@ -1397,7 +1397,7 @@ bool r600_common_screen_init(struct r600_common_screen *rscreen,
                printf("has_virtual_memory = %i\n", rscreen->info.has_virtual_memory);
                printf("gfx_ib_pad_with_type2 = %i\n", rscreen->info.gfx_ib_pad_with_type2);
                printf("num_sdma_rings = %i\n", rscreen->info.num_sdma_rings);
-               printf("has_uvd = %i\n", rscreen->info.has_uvd);
+               printf("has_hw_decode = %i\n", rscreen->info.has_hw_decode);
                printf("me_fw_version = %i\n", rscreen->info.me_fw_version);
                printf("pfp_fw_version = %i\n", rscreen->info.pfp_fw_version);
                printf("ce_fw_version = %i\n", rscreen->info.ce_fw_version);
index 6f82e294bdec14de2ceb0c6619cac796ae8a2c5c..909a959bc1cb9b2a966ead62cfddd481f29c661b 100644 (file)
@@ -175,7 +175,7 @@ static struct pipe_context *si_create_context(struct pipe_screen *screen,
        si_init_cp_dma_functions(sctx);
        si_init_debug_functions(sctx);
 
-       if (sscreen->b.info.has_uvd) {
+       if (sscreen->b.info.has_hw_decode) {
                sctx->b.b.create_video_codec = si_uvd_create_decoder;
                sctx->b.b.create_video_buffer = si_video_buffer_create;
        } else {
index ce52e2ad516ca1b70c2cd67e27fc4a1665172565..a485615ae4fd04d1989cfda6cdc6e0844249ab4f 100644 (file)
@@ -312,13 +312,13 @@ static bool do_winsys_init(struct radeon_drm_winsys *ws)
     }
 
     /* Check for UVD and VCE */
-    ws->info.has_uvd = false;
+    ws->info.has_hw_decode = false;
     ws->info.vce_fw_version = 0x00000000;
     if (ws->info.drm_minor >= 32) {
        uint32_t value = RADEON_CS_RING_UVD;
         if (radeon_get_drm_value(ws->fd, RADEON_INFO_RING_WORKING,
                                  "UVD Ring working", &value))
-            ws->info.has_uvd = value;
+            ws->info.has_hw_decode = value;
 
         value = RADEON_CS_RING_VCE;
         if (radeon_get_drm_value(ws->fd, RADEON_INFO_RING_WORKING,