v3d: Add a function to describe what the c->execute.file check means.

This is what pointed out that we were misusing the check for last_thrsw in
the previous commit.
This commit is contained in:
Eric Anholt
2019-02-14 09:34:33 -08:00
parent 441294962c
commit 581eba072d
2 changed files with 14 additions and 8 deletions

View File

@@ -846,6 +846,12 @@ quniform_contents_is_texture_p0(enum quniform_contents contents)
V3D_MAX_TEXTURE_SAMPLERS));
}
static inline bool
vir_in_nonuniform_control_flow(struct v3d_compile *c)
{
return c->execute.file != QFILE_NULL;
}
static inline struct qreg
vir_uniform_ui(struct v3d_compile *c, uint32_t ui)
{