pan/bi: Document when dual-tex is triggered

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4671>
This commit is contained in:
Alyssa Rosenzweig
2020-04-21 12:19:09 -04:00
committed by Marge Bot
parent 6fe41a12e3
commit a2c735350f
+5 -1
View File
@@ -1415,7 +1415,11 @@ static void dump_add(FILE *fp, uint64_t word, struct bifrost_regs regs,
struct bifrost_tex_ctrl ctrl;
memcpy((char *) &ctrl, (char *) &controlBits, sizeof(ctrl));
// TODO: figure out what actually triggers dual-tex
/* Dual-tex triggered for adjacent texturing
* instructions with the same coordinates to different
* textures/samplers. Observed for the compact
* (2D/normal) case. */
if (ctrl.result_type == 9) {
struct bifrost_dual_tex_ctrl dualCtrl;
memcpy((char *) &dualCtrl, (char *) &controlBits, sizeof(ctrl));