Lines Matching refs:linear
124 float linear = val->color.float32[i];
126 linear = util_format_linear_to_srgb_float(val->color.float32[i]);
129 clear_value[i] = _mesa_lroundevenf(CLAMP(linear, -1.0f, 1.0f) * 127.0f);
131 clear_value[i] = tu_pack_float32_for_unorm(linear, 8);
1852 * formats like B5G5R5A1 have a separate linear-only format when sampling.
1857 * format, i.e. only when the other image is linear.
1863 struct tu_native_format linear = tu6_format_texture(format, TILE6_LINEAR);
1865 return linear.fmt != tiled.fmt || linear.swap != tiled.swap;
1932 /* If an image is linear, we can always safely reinterpret it with the
3268 * write into padding space. The one exception is linear levels which don't