Skip to content

Commit

Permalink
More explicit testing for coissue bit conditions.
Browse files Browse the repository at this point in the history
I _still_ don't know what this does or how to express it in d3d asm, though!

--HG--
branch : trunk
  • Loading branch information
icculus committed Apr 20, 2008
1 parent 0c4cd98 commit 69ee8f9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion mojoshader.c
Expand Up @@ -3989,8 +3989,15 @@ static int parse_instruction_token(Context *ctx)
if ((token & 0x80000000) != 0)
return fail(ctx, "instruction token high bit must be zero."); // so says msdn.

if (coissue) // !!! FIXME: I'm not sure what this means, yet.
if (coissue)
{
if (!shader_is_pixel(ctx))
return fail(ctx, "coissue instruction on non-pixel shader");
else if (shader_version_atleast(ctx, 2, 0))
return fail(ctx, "coissue instruction in Shader Model >= 2.0");
// !!! FIXME: I'm not sure what this actually means, yet.
return fail(ctx, "coissue instructions unsupported");
} // if

if ((ctx->shader_type & instruction->shader_types) == 0)
{
Expand Down

0 comments on commit 69ee8f9

Please sign in to comment.