mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 17:58:26 +02:00
r300g: properly setup textures from X server
The setup needs be done after querying tiling flags.
This commit is contained in:
parent
4c26cdbe01
commit
e0848bd903
1 changed files with 3 additions and 4 deletions
|
|
@ -901,15 +901,14 @@ static struct pipe_texture*
|
|||
tex->tex.screen = screen;
|
||||
|
||||
tex->stride_override = stride;
|
||||
tex->pitch[0] = stride / util_format_get_blocksize(base->format);
|
||||
|
||||
r300_setup_flags(tex);
|
||||
r300_setup_texture_state(rscreen, tex);
|
||||
|
||||
/* one ref already taken */
|
||||
tex->buffer = buffer;
|
||||
|
||||
rws->buffer_get_tiling(rws, buffer, &tex->microtile, &tex->macrotile);
|
||||
r300_setup_flags(tex);
|
||||
r300_setup_miptree(rscreen, tex);
|
||||
r300_setup_texture_state(rscreen, tex);
|
||||
return (struct pipe_texture*)tex;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue