Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Assembler: support ps_1_1 TEX instruction.
  • Loading branch information
icculus committed Apr 25, 2013
1 parent 9408d4b commit dbba446
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mojoshader_assembler.c
Expand Up @@ -1143,8 +1143,12 @@ static int parse_instruction_token(Context *ctx, Token token)
const char *origtoken = ctx->token;
const unsigned int origtokenlen = ctx->tokenlen;

// "TEX" is only meaningful in ps_1_1.
if ((!shader_version_atleast(ctx, 1, 4)) && (check_token_segment(ctx, "TEX")))
controls = 0;

// This might need to be TEXLD instead of TEXLDP.
if (check_token_segment(ctx, "TEXLDP"))
else if (check_token_segment(ctx, "TEXLDP"))
controls = CONTROL_TEXLDP;

// This might need to be TEXLD instead of TEXLDB.
Expand Down

0 comments on commit dbba446

Please sign in to comment.