diff options
author | Matt Turner <[email protected]> | 2013-03-06 14:47:01 -0800 |
---|---|---|
committer | Matt Turner <[email protected]> | 2013-03-29 10:21:14 -0700 |
commit | b8aa9f7d3a146cff9c2c530abf815a1b316374ca (patch) | |
tree | 2ac7a5f0afb9750ead4a0c213bb90021ac972de1 /src/mesa/drivers/dri/i965/brw_fs_emit.cpp | |
parent | 110ca8b1f31e573210437e359723a4b0c16a5a0c (diff) |
i965/fs: Generate LOD sampler message from ir_lod.
v2: Support Ironlake as well.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs_emit.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_emit.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_emit.cpp b/src/mesa/drivers/dri/i965/brw_fs_emit.cpp index 5db481c60ee..ad1ca58f58c 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_emit.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_emit.cpp @@ -404,6 +404,9 @@ fs_generator::generate_tex(fs_inst *inst, struct brw_reg dst, struct brw_reg src else msg_type = GEN5_SAMPLER_MESSAGE_SAMPLE_LD; break; + case SHADER_OPCODE_LOD: + msg_type = GEN5_SAMPLER_MESSAGE_LOD; + break; default: assert(!"not reached"); break; @@ -1276,6 +1279,7 @@ fs_generator::generate_code(exec_list *instructions) case SHADER_OPCODE_TXF_MS: case SHADER_OPCODE_TXL: case SHADER_OPCODE_TXS: + case SHADER_OPCODE_LOD: generate_tex(inst, dst, src[0]); break; case FS_OPCODE_DDX: |