mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
draw: corrections for w coordinate
This commit is contained in:
parent
26ff7523b6
commit
c1d6b31866
1 changed files with 3 additions and 2 deletions
|
|
@ -800,9 +800,10 @@ generate_viewport(struct draw_llvm *llvm,
|
|||
|
||||
/* for 1/w convention*/
|
||||
out3 = LLVMBuildFDiv(builder, const1, out3, "");
|
||||
|
||||
LLVMBuildStore(builder, out3, outputs[0][3]);
|
||||
|
||||
/* Viewport Mapping */
|
||||
for (i=0; i<4; i++){
|
||||
for (i=0; i<3; i++){
|
||||
LLVMValueRef out = LLVMBuildLoad(builder, outputs[0][i], ""); /*x0 x1 x2 x3*/
|
||||
LLVMValueRef scale = lp_build_const_vec(f32_type, scaleA[i]); /*sx sx sx sx*/
|
||||
LLVMValueRef trans = lp_build_const_vec(f32_type, transA[i]); /*tx tx tx tx*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue