From aa055f78bad48d526907b094eb61f1e7502f401c Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Fri, 14 May 2021 18:47:50 +0200 Subject: [PATCH] r600/sfn: Don't check the faction when searching for the input slot All loads from the same driver location are merged into one variable, so there is no need to check the frachtion. Signed-off-by: Gert Wollny Part-of: --- src/gallium/drivers/r600/sfn/sfn_shaderio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/r600/sfn/sfn_shaderio.cpp b/src/gallium/drivers/r600/sfn/sfn_shaderio.cpp index 1ac94ccc786..07cbebcb223 100644 --- a/src/gallium/drivers/r600/sfn/sfn_shaderio.cpp +++ b/src/gallium/drivers/r600/sfn/sfn_shaderio.cpp @@ -416,7 +416,7 @@ ShaderInput& ShaderIO::input(size_t driver_loc, int frac) continue; auto& v = static_cast(*i); - if (v.location() == driver_loc && v.location_frac() == frac) + if (v.location() == driver_loc) return v; } return input(driver_loc);