Commit a2d15d1a by Nicolas Capens Committed by Nicolas Capens

Fix depth/stencil read format validation.

Bug b/117564133 Bug swiftshader:104 Change-Id: I6e5c4aca219e344df7b113fe445c5f1faeb7dd4b Reviewed-on: https://swiftshader-review.googlesource.com/c/21488Tested-by: 's avatarNicolas Capens <nicolascapens@google.com> Reviewed-by: 's avatarLingfeng Yang <lfy@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com>
parent 5378e142
......@@ -655,6 +655,7 @@ namespace es2
UNREACHABLE(internalformat);
return error(GL_INVALID_OPERATION, false);
}
break;
case GL_FLOAT:
switch(internalformat)
{
......@@ -670,6 +671,7 @@ namespace es2
UNREACHABLE(internalformat);
return error(GL_INVALID_OPERATION, false);
}
break;
default:
return error(GL_INVALID_ENUM, false);
}
......@@ -702,6 +704,7 @@ namespace es2
UNREACHABLE(internalformat);
return error(GL_INVALID_OPERATION, false);
}
break;
case GL_FLOAT_32_UNSIGNED_INT_24_8_REV:
switch(internalformat)
{
......@@ -713,6 +716,7 @@ namespace es2
UNREACHABLE(internalformat);
return error(GL_INVALID_OPERATION, false);
}
break;
default:
return error(GL_INVALID_ENUM, false);
}
......
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