projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ddd11a
)
i965/fs: Complete TXL support on gen5+.
author
Kenneth Graunke
<kenneth@whitecape.org>
Thu, 28 Oct 2010 19:53:21 +0000
(12:53 -0700)
committer
Kenneth Graunke
<kenneth@whitecape.org>
Fri, 25 Feb 2011 23:30:45 +0000
(15:30 -0800)
Initial plumbing existed to turn the ir_txl into OPCODE_TXL, but it was
never handled.
src/mesa/drivers/dri/i965/brw_fs.cpp
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_fs.cpp
b/src/mesa/drivers/dri/i965/brw_fs.cpp
index 87c06aa22bffb26c28f842b58e774d27c26e096a..552641b623d2396909d7212623a8e044543e9c9c 100644
(file)
--- 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) {