Revert "gallivm: disable rgtc/latc SNORM accellerated fetches"
This reverts commit 4897e70ccd
.
Fixed in previous commits.
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4425>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4425>
This commit is contained in:
parent
aa95b6aed5
commit
51492f20f7
|
@ -770,25 +770,19 @@ lp_build_fetch_rgba_aos(struct gallivm_state *gallivm,
|
|||
format_desc->format == PIPE_FORMAT_LATC1_SNORM ||
|
||||
format_desc->format == PIPE_FORMAT_LATC2_SNORM);
|
||||
|
||||
if (!tmp_type.sign) {
|
||||
/*
|
||||
* FIXME: this is buggy for snorm formats, likely the lerp is
|
||||
* busted.
|
||||
*/
|
||||
tmp = lp_build_fetch_rgtc_rgba_aos(gallivm,
|
||||
format_desc,
|
||||
num_pixels,
|
||||
base_ptr,
|
||||
offset,
|
||||
i, j,
|
||||
cache);
|
||||
tmp = lp_build_fetch_rgtc_rgba_aos(gallivm,
|
||||
format_desc,
|
||||
num_pixels,
|
||||
base_ptr,
|
||||
offset,
|
||||
i, j,
|
||||
cache);
|
||||
|
||||
lp_build_conv(gallivm,
|
||||
tmp_type, type,
|
||||
&tmp, 1, &tmp, 1);
|
||||
lp_build_conv(gallivm,
|
||||
tmp_type, type,
|
||||
&tmp, 1, &tmp, 1);
|
||||
|
||||
return tmp;
|
||||
}
|
||||
return tmp;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue