mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 17:58:26 +02:00
python: Add nblocksx/y members to surfaces.
This commit is contained in:
parent
382306c573
commit
e848a86dba
1 changed files with 14 additions and 0 deletions
|
|
@ -126,6 +126,8 @@ struct st_surface
|
|||
unsigned format;
|
||||
unsigned width;
|
||||
unsigned height;
|
||||
unsigned nblocksx;
|
||||
unsigned nblocksy;
|
||||
|
||||
~st_surface() {
|
||||
pipe_texture_reference(&$self->texture, NULL);
|
||||
|
|
@ -360,6 +362,18 @@ struct st_surface
|
|||
{
|
||||
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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue