mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
nak: Take component into account in store_output
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24998>
This commit is contained in:
parent
330f3e6fa8
commit
a7eb42119a
1 changed files with 4 additions and 1 deletions
|
|
@ -1600,13 +1600,16 @@ impl<'a> ShaderFromNir<'a> {
|
|||
self.fs_out_regs[(base / 4) + c] = data[c];
|
||||
}
|
||||
} else {
|
||||
let addr = u16::try_from(intrin.base()).unwrap()
|
||||
+ u16::try_from(intrin.component()).unwrap() * 4;
|
||||
|
||||
let data = self.get_src(&srcs[0]);
|
||||
let vtx = Src::new_zero();
|
||||
let offset = self.get_src(&srcs[1]);
|
||||
|
||||
assert!(intrin.get_src(0).bit_size() == 32);
|
||||
let access = AttrAccess {
|
||||
addr: intrin.base().try_into().unwrap(),
|
||||
addr: addr,
|
||||
comps: intrin.get_src(0).num_components(),
|
||||
patch: false,
|
||||
out_load: false,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue