r300: Move the instruction filter for r500_transform_IF() to the top.
rc_get_variables() is slow, don't call it if we're going to just exit immediately anyway. Cc: mesa-stable Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14117>
This commit is contained in:
@@ -4,6 +4,3 @@
|
||||
# Timeouts
|
||||
KHR-GLES2.texture_3d.filtering.combinations.*linear_mipmap_linear
|
||||
KHR-GLES2.texture_3d.filtering.sizes.*linear_mipmap_linear
|
||||
|
||||
# Infinite? looping in r500_transform_IF()
|
||||
dEQP-GLES2.functional.shaders.indexing.tmp_array.*_const_write_dynamic_read_fragment
|
||||
|
||||
@@ -44,16 +44,15 @@ int r500_transform_IF(
|
||||
struct rc_instruction * inst_if,
|
||||
void *data)
|
||||
{
|
||||
if (inst_if->U.I.Opcode != RC_OPCODE_IF)
|
||||
return 0;
|
||||
|
||||
struct rc_variable * writer;
|
||||
struct rc_list * writer_list, * list_ptr;
|
||||
struct rc_list * var_list = rc_get_variables(c);
|
||||
unsigned int generic_if = 0;
|
||||
unsigned int alu_chan;
|
||||
|
||||
if (inst_if->U.I.Opcode != RC_OPCODE_IF) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
writer_list = rc_variable_list_get_writers(
|
||||
var_list, inst_if->Type, &inst_if->U.I.SrcReg[0]);
|
||||
if (!writer_list) {
|
||||
|
||||
Reference in New Issue
Block a user