mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 03:00:24 +01:00
radeonsi: Eliminate one more magic number for texture image resources.
This commit is contained in:
parent
36d2914a19
commit
8f45cea81f
1 changed files with 3 additions and 3 deletions
|
|
@ -1259,9 +1259,9 @@ static struct pipe_sampler_view *evergreen_create_sampler_view(struct pipe_conte
|
|||
|
||||
va = r600_resource_va(ctx->screen, texture);
|
||||
view->state[0] = (va + tmp->offset[0]) >> 8;
|
||||
view->state[1] = ((va + tmp->offset[0]) >> 40) & 0xff;
|
||||
view->state[1] |= (S_008F14_DATA_FORMAT(format) |
|
||||
S_008F14_NUM_FORMAT(num_format));
|
||||
view->state[1] = (S_008F14_BASE_ADDRESS_HI((va + tmp->offset[0]) >> 40) |
|
||||
S_008F14_DATA_FORMAT(format) |
|
||||
S_008F14_NUM_FORMAT(num_format));
|
||||
view->state[2] = (S_008F18_WIDTH(texture->width0 - 1) |
|
||||
S_008F18_HEIGHT(height - 1));
|
||||
view->state[3] = (S_008F1C_DST_SEL_X(si_map_swizzle(swizzle[0])) |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue