Commit d1f6d268 authored by jsantill's avatar jsantill Committed by gbsbuild

Fixing assert after array optimization

Change-Id: I8461460cc720174e0a913a54bdf21adab59e00f9
parent eaabc2b7
......@@ -13888,7 +13888,7 @@ ResourceDescriptor EmitPass::GetResourceVariable(Value* resourcePtr)
CVariable* newResource = m_currShader->GetNewVariable(
resource.m_resource->GetNumberElement(),
ISA_TYPE_UD,
resource.m_resource->GetAlign(),
resource.m_resource->IsUniform() ? EALIGN_DWORD : EALIGN_GRF,
resource.m_resource->IsUniform());
m_encoder->Cast(newResource, resource.m_resource);
resource.m_resource = newResource;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment