diff options
author | Icenowy Zheng <[email protected]> | 2019-09-26 11:10:18 +0800 |
---|---|---|
committer | Vasily Khoruzhick <[email protected]> | 2019-09-26 16:52:22 +0000 |
commit | a1ff8dbb1e4f526605abe94c5631272e4ab5a7db (patch) | |
tree | 03e1daae4e95a60fbd846c09d55ef0292c89b461 /src/gallium/drivers/lima/lima_draw.c | |
parent | eb03141f52fe9f620d941006077ce2cefff84e65 (diff) |
lima: support rectangle texture
As Vasily discovered, the bit 7 of the word 1 of the texture descriptor
is set when reloading the framebuffer, to use framebuffer-based offset
rather than normalized one. This bit also works for regular textures to
enable accessing with non-normalized offset.
Add support for rectangle texture by setting this bit for
PIPE_TEXTURE_RECT.
Suggested-by: Vasily Khoruzhick <[email protected]>
Signed-off-by: Icenowy Zheng <[email protected]>
Reviewed-by: Vasily Khoruzhick <[email protected]>
Diffstat (limited to 'src/gallium/drivers/lima/lima_draw.c')
-rw-r--r-- | src/gallium/drivers/lima/lima_draw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/lima/lima_draw.c b/src/gallium/drivers/lima/lima_draw.c index 8d306caf64a..0cb41d2070d 100644 --- a/src/gallium/drivers/lima/lima_draw.c +++ b/src/gallium/drivers/lima/lima_draw.c @@ -289,7 +289,7 @@ lima_pack_reload_plbu_cmd(struct lima_context *ctx) lima_tex_desc *td = cpu + lima_reload_tex_desc_offset; memset(td, 0, lima_min_tex_desc_size); lima_texture_desc_set_res(ctx, td, fb->base.cbufs[0]->texture, 0, 0); - td->unknown_1_1 = 0x80; + td->unnorm_coords = 1; td->texture_2d = 1; td->min_img_filter_nearest = 1; td->mag_img_filter_nearest = 1; |