gallium: Add PIPE_CAP_COMPUTE_IMAGES_SUPPORTED
authorTom Stellard <thomas.stellard@amd.com>
Thu, 24 Jul 2014 00:37:07 +0000 (20:37 -0400)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 25 Jul 2014 16:49:20 +0000 (12:49 -0400)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/gallium/docs/source/screen.rst
src/gallium/drivers/radeon/r600_pipe_common.c
src/gallium/include/pipe/p_defines.h

index ba583fef6c0cf866a7bbdece8510bd493efb3ecb..830a1a59393bcee8bd74ef57ab422846a94f42ae 100644 (file)
@@ -332,6 +332,8 @@ pipe_screen::get_compute_param.
   clock in MHz. Value type: ``uint32_t``
 * ``PIPE_COMPUTE_CAP_MAX_COMPUTE_UNITS``: Maximum number of compute units
   Value type: ``uint32_t``
+* ``PIPE_COMPUTE_CAP_IMAGES_SUPPORTED``: Whether images are supported
+  non-zero means yes, zero means no. Value type: ``uint32_t``
 
 .. _pipe_bind:
 
index 6535992705983657c1be4bd730046de345bb9828..bf0585d11fae28711ec388e0ac1698ccd19d8e55 100644 (file)
@@ -519,6 +519,13 @@ static int r600_get_compute_param(struct pipe_screen *screen,
                        *max_compute_units = MAX2(rscreen->info.max_compute_units, 1);
                }
                return sizeof(uint32_t);
+
+       case PIPE_COMPUTE_CAP_IMAGES_SUPPORTED:
+               if (ret) {
+                       uint32_t *images_supported = ret;
+                       *images_supported = 0;
+               }
+               return sizeof(uint32_t);
        }
 
         fprintf(stderr, "unknown PIPE_COMPUTE_CAP %d\n", param);
index d9b6e5aa53d627fcc5b98d03106af05297e309f4..43bb1f57670b70dadece2964b230ad6c1f793d29 100644 (file)
@@ -650,7 +650,8 @@ enum pipe_compute_cap
    PIPE_COMPUTE_CAP_MAX_INPUT_SIZE,
    PIPE_COMPUTE_CAP_MAX_MEM_ALLOC_SIZE,
    PIPE_COMPUTE_CAP_MAX_CLOCK_FREQUENCY,
-   PIPE_COMPUTE_CAP_MAX_COMPUTE_UNITS
+   PIPE_COMPUTE_CAP_MAX_COMPUTE_UNITS,
+   PIPE_COMPUTE_CAP_IMAGES_SUPPORTED
 };
 
 /**