unsigned format;
unsigned width;
unsigned height;
+ unsigned nblocksx;
+ unsigned nblocksy;
~st_surface() {
pipe_texture_reference(&$self->texture, NULL);
{
return surface->texture->height[surface->level];
}
+
+ static unsigned
+ st_surface_nblocksx_get(struct st_surface *surface)
+ {
+ return surface->texture->nblocksx[surface->level];
+ }
+
+ static unsigned
+ st_surface_nblocksy_get(struct st_surface *surface)
+ {
+ return surface->texture->nblocksy[surface->level];
+ }
%}
/* Avoid naming conflict with p_inlines.h's pipe_buffer_read/write */