mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
freedreno: do not fake rgtc-support
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18564>
This commit is contained in:
parent
84a30f0372
commit
719294ea51
2 changed files with 1 additions and 13 deletions
|
|
@ -288,16 +288,6 @@ static struct fd3_format formats[PIPE_FORMAT_COUNT] = {
|
|||
_T(DXT5_RGBA, DXT5, NONE, WZYX),
|
||||
_T(DXT5_SRGBA, DXT5, NONE, WZYX),
|
||||
|
||||
/* faked */
|
||||
_T(RGTC1_UNORM, 8_8_8_8_UNORM, NONE, WZYX),
|
||||
_T(RGTC1_SNORM, 8_8_8_8_SNORM, NONE, WZYX),
|
||||
_T(RGTC2_UNORM, 8_8_8_8_UNORM, NONE, WZYX),
|
||||
_T(RGTC2_SNORM, 8_8_8_8_SNORM, NONE, WZYX),
|
||||
_T(LATC1_UNORM, 8_8_8_8_UNORM, NONE, WZYX),
|
||||
_T(LATC1_SNORM, 8_8_8_8_SNORM, NONE, WZYX),
|
||||
_T(LATC2_UNORM, 8_8_8_8_UNORM, NONE, WZYX),
|
||||
_T(LATC2_SNORM, 8_8_8_8_SNORM, NONE, WZYX),
|
||||
|
||||
_T(ATC_RGB, ATC_RGB, NONE, WZYX),
|
||||
_T(ATC_RGBA_EXPLICIT, ATC_RGBA_EXPLICIT, NONE, WZYX),
|
||||
_T(ATC_RGBA_INTERPOLATED, ATC_RGBA_INTERPOLATED, NONE, WZYX),
|
||||
|
|
|
|||
|
|
@ -1660,7 +1660,6 @@ void
|
|||
fd_resource_screen_init(struct pipe_screen *pscreen)
|
||||
{
|
||||
struct fd_screen *screen = fd_screen(pscreen);
|
||||
bool fake_rgtc = screen->gen < 4;
|
||||
|
||||
pscreen->resource_create = u_transfer_helper_resource_create;
|
||||
/* NOTE: u_transfer_helper does not yet support the _with_modifiers()
|
||||
|
|
@ -1674,8 +1673,7 @@ fd_resource_screen_init(struct pipe_screen *pscreen)
|
|||
pscreen->transfer_helper =
|
||||
u_transfer_helper_create(&transfer_vtbl,
|
||||
U_TRANSFER_HELPER_SEPARATE_Z32S8 |
|
||||
U_TRANSFER_HELPER_MSAA_MAP |
|
||||
(fake_rgtc ? U_TRANSFER_HELPER_FAKE_RGTC : 0));
|
||||
U_TRANSFER_HELPER_MSAA_MAP);
|
||||
|
||||
if (!screen->layout_resource_for_modifier)
|
||||
screen->layout_resource_for_modifier = fd_layout_resource_for_modifier;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue