This the gen SurfaceType, such as SURFTYPE_2D.
image->swap_chain = NULL;
image->tile_mode = anv_image_choose_tile_mode(pCreateInfo, extra);
+ /* TODO(chadv): How should we validate inputs? */
+ image->surf_type = anv_surf_type_from_image_type[pCreateInfo->imageType];
+
assert(image->extent.width > 0);
assert(image->extent.height > 0);
assert(image->extent.depth > 0);
uint8_t h_align;
uint8_t v_align;
/** \} */
+
+ /** RENDER_SURFACE_STATE.SurfaceType */
+ uint8_t surf_type;
};
struct anv_surface_view {