瀏覽代碼

util: linearized sRGB values don't fit into 8bits

Fixes glean texture_srgb test.
tags/snb-magic
José Fonseca 15 年之前
父節點
當前提交
903a66abaf
共有 1 個檔案被更改,包括 8 行新增0 行删除
  1. 8
    0
      src/gallium/auxiliary/util/u_format.c

+ 8
- 0
src/gallium/auxiliary/util/u_format.c 查看文件

@@ -173,6 +173,14 @@ util_format_fits_8unorm(const struct util_format_description *format_desc)
{
unsigned chan;

/*
* After linearized sRGB values require more than 8bits.
*/

if (format_desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB) {
return FALSE;
}

switch (format_desc->layout) {

case UTIL_FORMAT_LAYOUT_S3TC:

Loading…
取消
儲存