Commit 399acb89 by Alexis Hetu Committed by Alexis Hétu

Fixed crash using uniforms as indices

Uniforms can now legally be used as indices in OpenGL ES 3.0, so they now have to be handled properly in the dynamic indexing analysis. Change-Id: I971aa55edcbc73796c30e0acc99156b513a78b80 Reviewed-on: https://swiftshader-review.googlesource.com/3550Tested-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com>
parent 146411a8
......@@ -1785,7 +1785,8 @@ namespace sw
{
if(instruction[i]->dst.rel.type == PARAMETER_ADDR ||
instruction[i]->dst.rel.type == PARAMETER_LOOP ||
instruction[i]->dst.rel.type == PARAMETER_TEMP)
instruction[i]->dst.rel.type == PARAMETER_TEMP ||
instruction[i]->dst.rel.type == PARAMETER_CONST)
{
switch(instruction[i]->dst.type)
{
......@@ -1799,7 +1800,8 @@ namespace sw
{
if(instruction[i]->src[j].rel.type == PARAMETER_ADDR ||
instruction[i]->src[j].rel.type == PARAMETER_LOOP ||
instruction[i]->src[j].rel.type == PARAMETER_TEMP)
instruction[i]->src[j].rel.type == PARAMETER_TEMP ||
instruction[i]->src[j].rel.type == PARAMETER_CONST)
{
switch(instruction[i]->src[j].type)
{
......
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