Module: Mesa
Branch: vulkan
Commit: 032bf172b48211af8fc892747dc4600fb6595f99
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=032bf172b48211af8fc892747dc4600fb6595f99

Author: Nanley Chery <nanley.g.ch...@intel.com>
Date:   Thu Feb 25 15:21:12 2016 -0800

anv/meta: Modify blitter API fields

Some fields are unnecessary. The variables "pitch" and "bs" are used
for consistency with ISL.

v2: Keep pitch in units of bytes (Jason)

Signed-off-by: Nanley Chery <nanley.g.ch...@intel.com>
Reviewed-by: Jason Ekstrand <jason.ekstr...@intel.com>

---

 src/intel/vulkan/anv_meta.h | 23 +++++------------------
 1 file changed, 5 insertions(+), 18 deletions(-)

diff --git a/src/intel/vulkan/anv_meta.h b/src/intel/vulkan/anv_meta.h
index f5dac12..9521764 100644
--- a/src/intel/vulkan/anv_meta.h
+++ b/src/intel/vulkan/anv_meta.h
@@ -77,24 +77,11 @@ struct anv_meta_blit2d_surf {
    /** Base offset to the start of the image */
    uint64_t base_offset;
 
-   uint32_t offset_x;
-   uint32_t offset_y;
-
-   /** The size of a unit in bytes. (Usually texel size) */
-   uint8_t units;
-
-   /** Stride between rows in bytes. */
-   uint32_t stride;
-
-   /** Possible vertical stride in rows.
-    *
-    * This is a hint to the blit engine that tells it that it can, if it
-    * wants, split the surface into v_stride tall chunks.  The user makes
-    * the guarantee that no rectangles it passes in will every cross a
-    * v_stride boundary.  A v_stride value of 0 indicates that the user
-    * cannot make such a guarantee.
-    */
-   uint32_t v_stride;
+   /** The size of an element in bytes. */
+   uint8_t bs;
+
+   /** Pitch between rows in bytes. */
+   uint32_t pitch;
 };
 
 struct anv_meta_blit2d_rect {

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to