mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
gallivm: Fix calculating rho for 3d textures for the single-quad case
Discovered by accident, this looks like a very old typo bug. Signed-off-by: José Fonseca <jfonseca@vmware.com>
This commit is contained in:
parent
529476b5e4
commit
dfbb18bdb5
1 changed files with 1 additions and 2 deletions
|
|
@ -256,9 +256,8 @@ lp_build_rho(struct lp_build_sample_context *bld,
|
||||||
rho_t = LLVMBuildExtractElement(builder, rho_vec, index1, "");
|
rho_t = LLVMBuildExtractElement(builder, rho_vec, index1, "");
|
||||||
|
|
||||||
rho = lp_build_max(float_bld, rho_s, rho_t);
|
rho = lp_build_max(float_bld, rho_s, rho_t);
|
||||||
|
|
||||||
if (dims >= 3) {
|
if (dims >= 3) {
|
||||||
rho_r = LLVMBuildExtractElement(builder, rho_vec, index0, "");
|
rho_r = LLVMBuildExtractElement(builder, rho_vec, index2, "");
|
||||||
rho = lp_build_max(float_bld, rho, rho_r);
|
rho = lp_build_max(float_bld, rho, rho_r);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue