mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 06:40:08 +01:00
nouveau: Assume all texture blankets are linear for now.
This commit is contained in:
parent
1f630fa016
commit
87d7c1aa15
3 changed files with 7 additions and 2 deletions
|
|
@ -147,6 +147,9 @@ nv30_miptree_blanket(struct pipe_screen *pscreen, const struct pipe_texture *pt,
|
|||
mt->level[0].pitch = stride[0];
|
||||
mt->level[0].image_offset = CALLOC(1, sizeof(unsigned));
|
||||
|
||||
/* Assume whoever created this buffer expects it to be linear for now */
|
||||
mt->base.tex_usage |= NOUVEAU_TEXTURE_USAGE_LINEAR;
|
||||
|
||||
pipe_buffer_reference(&mt->buffer, pb);
|
||||
return &mt->base;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -141,6 +141,9 @@ nv40_miptree_blanket(struct pipe_screen *pscreen, const struct pipe_texture *pt,
|
|||
mt->level[0].pitch = stride[0];
|
||||
mt->level[0].image_offset = CALLOC(1, sizeof(unsigned));
|
||||
|
||||
/* Assume whoever created this buffer expects it to be linear for now */
|
||||
mt->base.tex_usage |= NOUVEAU_TEXTURE_USAGE_LINEAR;
|
||||
|
||||
pipe_buffer_reference(&mt->buffer, pb);
|
||||
return &mt->base;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,8 +21,7 @@ dri_surface_from_handle(struct drm_api *api, struct pipe_screen *pscreen,
|
|||
struct pipe_texture tmpl;
|
||||
|
||||
memset(&tmpl, 0, sizeof(tmpl));
|
||||
tmpl.tex_usage = PIPE_TEXTURE_USAGE_PRIMARY |
|
||||
NOUVEAU_TEXTURE_USAGE_LINEAR;
|
||||
tmpl.tex_usage = PIPE_TEXTURE_USAGE_PRIMARY;
|
||||
tmpl.target = PIPE_TEXTURE_2D;
|
||||
tmpl.last_level = 0;
|
||||
tmpl.depth[0] = 1;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue