Displaying 6 results from an estimated 6 matches for "util_format_get_blocksizebit".
Did you mean:
util_format_get_blocksizebits
2015 Jan 02
2
[PATCH] nv50: enable texture compression
...es);
uint32_t tile_flags;
if (unlikely(mt->base.base.flags & NOUVEAU_RESOURCE_FLAG_LINEAR))
@@ -96,6 +95,7 @@ nv50_mt_choose_storage_type(struct nv50_miptree *mt, boolean compressed)
tile_flags = 0x60 + ms;
break;
default:
+ compressed = false;
switch (util_format_get_blocksizebits(mt->base.base.format)) {
case 128:
assert(ms < 3);
diff --git a/src/gallium/drivers/nouveau/nv50/nv50_screen.c b/src/gallium/drivers/nouveau/nv50/nv50_screen.c
index 2d8347b..8d759a7 100644
--- a/src/gallium/drivers/nouveau/nv50/nv50_screen.c
+++ b/src/gallium/drivers/nouvea...
2015 Dec 19
2
[PATCH] nvc0: add hardware ETC2 and ASTC support where possible
...)
{
+ const struct util_format_description *desc = util_format_description(format);
if (sample_count > 8)
return false;
if (!(0x117 & (1 << sample_count))) /* 0, 1, 2, 4 or 8 */
@@ -55,6 +56,15 @@ nvc0_screen_is_format_supported(struct pipe_screen *pscreen,
if (util_format_get_blocksizebits(format) == 3 * 32)
return false;
+ /* Restrict ETC2 and ASTC formats here. These are only supported on GM107+
+ * and GK20A.
+ */
+ if ((desc->layout == UTIL_FORMAT_LAYOUT_ETC ||
+ desc->layout == UTIL_FORMAT_LAYOUT_ASTC) &&
+ nouveau_screen(pscreen...
2015 Jan 02
0
[PATCH] nv50: enable texture compression
...; if (unlikely(mt->base.base.flags & NOUVEAU_RESOURCE_FLAG_LINEAR))
> @@ -96,6 +95,7 @@ nv50_mt_choose_storage_type(struct nv50_miptree *mt, boolean compressed)
> tile_flags = 0x60 + ms;
> break;
> default:
> + compressed = false;
> switch (util_format_get_blocksizebits(mt->base.base.format)) {
> case 128:
> assert(ms < 3);
> diff --git a/src/gallium/drivers/nouveau/nv50/nv50_screen.c b/src/gallium/drivers/nouveau/nv50/nv50_screen.c
> index 2d8347b..8d759a7 100644
> --- a/src/gallium/drivers/nouveau/nv50/nv50_screen.c
> ++...
2015 Jan 02
1
[PATCH v2] nv50: enable texture compression
On 03.01.2015 00:20, Ilia Mirkin wrote:
> On Fri, Jan 2, 2015 at 6:09 PM, Tobias Klausmann
> <tobias.johannes.klausmann at mni.thm.de> wrote:
>> We enable compression only for some supported formats
>>
>> Suggested-by: Ilia Mirkin <imirkin at alum.mit.edu>
>> Signed-off-by: Tobias Klausmann <tobias.johannes.klausmann at mni.thm.de>
>> ---
2015 Jan 02
2
[PATCH v2] nv50: enable texture compression
...8G8R8X8_UNORM:
+ case PIPE_FORMAT_B8G8R8X8_SRGB:
+ case PIPE_FORMAT_R8G8B8X8_UNORM:
+ case PIPE_FORMAT_R8G8B8X8_SRGB:
+ /* Allow compression for these formats if desired */
+ break;
+ default:
+ compressed = false;
+ break;
+ }
switch (util_format_get_blocksizebits(mt->base.base.format)) {
case 128:
assert(ms < 3);
diff --git a/src/gallium/drivers/nouveau/nv50/nv50_screen.c b/src/gallium/drivers/nouveau/nv50/nv50_screen.c
index 2d8347b..da237f9 100644
--- a/src/gallium/drivers/nouveau/nv50/nv50_screen.c
+++ b/src/gallium/drivers/nouvea...
2015 Dec 19
0
[PATCH] nvc0: add hardware ETC2 and ASTC support where possible
...l_format_description *desc = util_format_description(format);
> if (sample_count > 8)
> return false;
> if (!(0x117 & (1 << sample_count))) /* 0, 1, 2, 4 or 8 */
> @@ -55,6 +56,15 @@ nvc0_screen_is_format_supported(struct pipe_screen *pscreen,
> if (util_format_get_blocksizebits(format) == 3 * 32)
> return false;
>
> + /* Restrict ETC2 and ASTC formats here. These are only supported on GM107+
> + * and GK20A.
> + */
> + if ((desc->layout == UTIL_FORMAT_LAYOUT_ETC ||
> + desc->layout == UTIL_FORMAT_LAYOUT_ASTC) &&am...