Mesa (master): i965/fs: Complete TXL support on gen5+.
Kenneth Graunke
kwg at kemper.freedesktop.org
Fri Feb 25 23:31:02 UTC 2011
Module: Mesa
Branch: master
Commit: 2830b1ae9032666e62460de5aece8db843c51c14
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2830b1ae9032666e62460de5aece8db843c51c14
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Thu Oct 28 12:53:21 2010 -0700
i965/fs: Complete TXL support on gen5+.
Initial plumbing existed to turn the ir_txl into OPCODE_TXL, but it was
never handled.
---
src/mesa/drivers/dri/i965/brw_fs.cpp | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index 87c06aa..552641b 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -2308,6 +2308,13 @@ fs_visitor::generate_tex(fs_inst *inst, struct brw_reg dst, struct brw_reg src)
msg_type = BRW_SAMPLER_MESSAGE_SAMPLE_BIAS_GEN5;
}
break;
+ case FS_OPCODE_TXL:
+ if (inst->shadow_compare) {
+ msg_type = BRW_SAMPLER_MESSAGE_SAMPLE_LOD_COMPARE_GEN5;
+ } else {
+ msg_type = BRW_SAMPLER_MESSAGE_SAMPLE_LOD_GEN5;
+ }
+ break;
}
} else {
switch (inst->opcode) {
More information about the mesa-commit
mailing list