glsl: ir_texture add clamp field
For ARB_sparse_texture_clamp to hold the lodClamp parameter. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Signed-off-by: Qiang Yu <yuq825@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14488>
This commit is contained in:
@@ -349,6 +349,15 @@ void ir_print_visitor::visit(ir_texture *ir)
|
||||
}
|
||||
}
|
||||
|
||||
if (ir->op == ir_tex || ir->op == ir_txb || ir->op == ir_txd) {
|
||||
if (ir->clamp) {
|
||||
fprintf(f, " ");
|
||||
ir->clamp->accept(this);
|
||||
} else {
|
||||
fprintf(f, " ()");
|
||||
}
|
||||
}
|
||||
|
||||
fprintf(f, " ");
|
||||
switch (ir->op)
|
||||
{
|
||||
|
Reference in New Issue
Block a user