mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
virgl: Always make some extra temps available for transformations
The host driver will optimize unused variables away, and checking thoroughly whether we may need an extra temp is just uselessly costly. Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Reviewed-by: Emma Anholt <emma@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15836>
This commit is contained in:
parent
a4a34cd323
commit
a083ae818a
1 changed files with 3 additions and 5 deletions
|
|
@ -189,11 +189,9 @@ virgl_tgsi_transform_prolog(struct tgsi_transform_context * ctx)
|
|||
{
|
||||
struct virgl_transform_context *vtctx = (struct virgl_transform_context *)ctx;
|
||||
|
||||
if (vtctx->info.uses_doubles || vtctx->info.file_count[TGSI_FILE_SAMPLER_VIEW]) {
|
||||
vtctx->src_temp = vtctx->next_temp;
|
||||
vtctx->next_temp += 4;
|
||||
tgsi_transform_temps_decl(ctx, vtctx->src_temp, vtctx->src_temp + 3);
|
||||
}
|
||||
vtctx->src_temp = vtctx->next_temp;
|
||||
vtctx->next_temp += 4;
|
||||
tgsi_transform_temps_decl(ctx, vtctx->src_temp, vtctx->src_temp + 3);
|
||||
|
||||
if (vtctx->num_writemask_fixups) {
|
||||
vtctx->writemask_fixup_temps = vtctx->next_temp;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue