OSDN Git Service

anv: Fix comment for anv_meta_state arrays
authorChad Versace <chad.versace@intel.com>
Thu, 28 Jan 2016 01:22:20 +0000 (17:22 -0800)
committerChad Versace <chad.versace@intel.com>
Thu, 28 Jan 2016 02:32:05 +0000 (18:32 -0800)
Array element i is for 2^i samples, not log2(i) samples.

src/vulkan/anv_private.h

index 43d4781..e328d3d 100644 (file)
@@ -565,7 +565,7 @@ struct anv_meta_state {
    VkAllocationCallbacks alloc;
 
    /**
-    * Use array element `i` to clear an image with `log2(i)` samples.
+    * Use array element `i` for images with `2^i` samples.
     */
    struct {
       /**
@@ -601,7 +601,7 @@ struct anv_meta_state {
 
    struct {
       /**
-       * Use pipeline `i` to resolve an image with `log2(i)` samples.
+       * Use pipeline `i` for images with `2^i` samples.
        */
       VkPipeline                                pipelines[4];