mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
etnaviv: tex_desc: remove descriptor patch TODO comment
There is nothing more TODO here. With softpin, which is available on all GPUs using texture descriptors, there is no need for the kernel to patch the descriptor, as the proper GPU virtual address is filled in by userspace. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de> Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17448>
This commit is contained in:
parent
8ddaca1633
commit
0d13dfcf7c
1 changed files with 2 additions and 4 deletions
|
|
@ -230,14 +230,12 @@ etna_sampler_view_update_descriptor(struct etna_context *ctx,
|
|||
struct etna_cmd_stream *stream,
|
||||
struct etna_sampler_view_desc *sv)
|
||||
{
|
||||
/* TODO: this should instruct the kernel to update the descriptor when the
|
||||
* bo is submitted. For now, just prevent the bo from being freed
|
||||
* while it is in use indirectly.
|
||||
*/
|
||||
struct etna_resource *res = etna_resource(sv->base.texture);
|
||||
|
||||
if (res->texture) {
|
||||
res = etna_resource(res->texture);
|
||||
}
|
||||
|
||||
/* No need to ref LOD levels individually as they'll always come from the same bo */
|
||||
etna_cmd_stream_ref_bo(stream, res->bo, ETNA_RELOC_READ);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue