[Mesa-dev] [PATCH 4/6] i965: Add blorp-based texture upload path
Chris Wilson
chris at chris-wilson.co.uk
Wed Oct 11 17:51:07 UTC 2017
Quoting Kenneth Graunke (2017-10-10 23:14:17)
> +/* Consider all the restrictions and determine the format of the source. */
> +static mesa_format
> +blorp_get_client_format(struct brw_context *brw,
> + GLenum format, GLenum type,
> + const struct gl_pixelstore_attrib *packing)
> +{
> + if (brw->ctx._ImageTransferState)
> + return MESA_FORMAT_NONE;
> +
> + if (packing->SwapBytes || packing->LsbFirst || packing->Invert) {
> + perf_debug("intel_texsubimage_blorp: unsupported gl_pixelstore_attrib\n");
> + return MESA_FORMAT_NONE;
> + }
> +
> + if (format != GL_RED &&
> + format != GL_RG &&
> + format != GL_RGB &&
> + format != GL_RGBA &&
GL_BGRA and friends?
-Chris
More information about the mesa-dev
mailing list