r600/sfn: use get_temp_vec4 directly when fetching
Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9874>
This commit is contained in:
parent
6da330ece7
commit
bf60ffd0cd
|
@ -846,7 +846,7 @@ GPRVector ShaderFromNirProcessor::vec_from_nir_with_fetch_constant(const nir_src
|
||||||
*/
|
*/
|
||||||
if (!use_same) {
|
if (!use_same) {
|
||||||
AluInstruction *ir = nullptr;
|
AluInstruction *ir = nullptr;
|
||||||
GPRVector result(allocate_temp_register(), swizzle);
|
GPRVector result = get_temp_vec4(swizzle);
|
||||||
for (int i = 0; i < 4; ++i) {
|
for (int i = 0; i < 4; ++i) {
|
||||||
if (swizzle[i] < 4 && (mask & (1 << i))) {
|
if (swizzle[i] < 4 && (mask & (1 << i))) {
|
||||||
ir = new AluInstruction(op1_mov, result[i], from_nir(src, swizzle[i]),
|
ir = new AluInstruction(op1_mov, result[i], from_nir(src, swizzle[i]),
|
||||||
|
|
Loading…
Reference in New Issue