diff options
author | Jerome Glisse <[email protected]> | 2010-06-06 22:13:24 +0200 |
---|---|---|
committer | Jerome Glisse <[email protected]> | 2010-06-06 22:16:47 +0200 |
commit | c6131879eb7dfdf26cd068109f6680608d608ab4 (patch) | |
tree | 02fd9492098c4d44f775b42a34a1aeae7a4edda2 /src/gallium/drivers/r600/r600_shader.c | |
parent | aeffba454f8f5bc63bf97c1a0925cfef51af13c2 (diff) |
r600g: add shader literal constant support
Signed-off-by: Jerome Glisse <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/r600_shader.c')
-rw-r--r-- | src/gallium/drivers/r600/r600_shader.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c index 9708d951883..6b29d333798 100644 --- a/src/gallium/drivers/r600/r600_shader.c +++ b/src/gallium/drivers/r600/r600_shader.c @@ -156,6 +156,12 @@ struct r600_pipe_shader *r600_pipe_shader_create(struct pipe_context *ctx, unsig return NULL; } c_shader_dump(&rshader->cshader); + r = r600_cshader_legalize(&rshader->cshader); + if (r) { + r600_pipe_shader_destroy(ctx, rpshader); + fprintf(stderr, "ERROR(%s %d)>>\n\n", __func__, __LINE__); + return NULL; + } r = r700_shader_translate(rshader); if (r) { r600_pipe_shader_destroy(ctx, rpshader); |