summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2018-06-17 10:00:29 +1000
committerTimothy Arceri <[email protected]>2018-06-18 09:29:38 +1000
commit66673bef941af344314fe9c91cad8cd330b245eb (patch)
treeb4e2a69a0ec35f93542f062bd4587fefa578c0bb /src/gallium/auxiliary
parentb8e099e7d5c8a7165b89da81ff9d5efa45139902 (diff)
mesa: Unconditionally enable floating-point textures
ARB_texture_float references US Patent #6,650,327 [1] which has a filing date of June 16 1998. According to [2], patents filed after 1995 expire 20 years from the filing date, giving an expiration of June 17 2018. [1] https://www.google.com/patents/US6650327 [2] https://en.wikipedia.org/wiki/Term_of_patent_in_the_United_States Reviewed-by: Matt Turner <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/util/u_format.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/gallium/auxiliary/util/u_format.c b/src/gallium/auxiliary/util/u_format.c
index 369b4c3126b..e0325e9c534 100644
--- a/src/gallium/auxiliary/util/u_format.c
+++ b/src/gallium/auxiliary/util/u_format.c
@@ -242,16 +242,7 @@ util_format_is_supported(enum pipe_format format, unsigned bind)
return FALSE;
}
-#ifndef TEXTURE_FLOAT_ENABLED
- if ((bind & PIPE_BIND_RENDER_TARGET) &&
- format != PIPE_FORMAT_R9G9B9E5_FLOAT &&
- format != PIPE_FORMAT_R11G11B10_FLOAT &&
- util_format_is_float(format)) {
- return FALSE;
- }
-#else
(void)bind;
-#endif
return TRUE;
}