mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-11 14:30:26 +01:00
softpipe: remove redundant assignments
We initialized width/height/depth from pt->width0/height0/depth0 above.
This commit is contained in:
parent
ef631104d5
commit
aec3fe82e4
1 changed files with 0 additions and 5 deletions
|
|
@ -57,13 +57,8 @@ softpipe_texture_layout(struct pipe_screen *screen,
|
|||
unsigned width = pt->width0;
|
||||
unsigned height = pt->height0;
|
||||
unsigned depth = pt->depth0;
|
||||
|
||||
unsigned buffer_size = 0;
|
||||
|
||||
pt->width0 = width;
|
||||
pt->height0 = height;
|
||||
pt->depth0 = depth;
|
||||
|
||||
for (level = 0; level <= pt->last_level; level++) {
|
||||
spt->stride[level] = util_format_get_stride(pt->format, width);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue