i965: Enabled the OES_copy_image extension on Gen 7 GPUs
OES_copy_image extension was disabled on Gen7 due to the lack of support for ETC2 images. Enabled it back. (Kenneth Graunke) v2: - Removed the blank lines in the comments above OES_copy_image and OES_texture_view extensions in intel_extensions.c (Nanley Chery) Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
This commit is contained in:
parent
db0c379c06
commit
248f2e7888
|
@ -287,12 +287,20 @@ intelInitExtensions(struct gl_context *ctx)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (devinfo->gen >= 8 || devinfo->is_baytrail) {
|
if (devinfo->gen >= 8 || devinfo->is_baytrail) {
|
||||||
/* For now, we only enable OES_copy_image on platforms that support
|
/* For now, we can't enable OES_texture_view on Gen 7 because of
|
||||||
* ETC2 natively in hardware. We would need more hacks to support it
|
* some piglit failures coming from
|
||||||
* elsewhere. Same with OES_texture_view.
|
* piglit/tests/spec/arb_texture_view/rendering-formats.c that need
|
||||||
|
* investigation.
|
||||||
|
*/
|
||||||
|
ctx->Extensions.OES_texture_view = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (devinfo->gen >= 7) {
|
||||||
|
/* We can safely enable OES_copy_image on Gen 7, since we emulate
|
||||||
|
* the ETC2 support using the shadow_miptree to store the
|
||||||
|
* compressed data.
|
||||||
*/
|
*/
|
||||||
ctx->Extensions.OES_copy_image = true;
|
ctx->Extensions.OES_copy_image = true;
|
||||||
ctx->Extensions.OES_texture_view = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (devinfo->gen >= 8) {
|
if (devinfo->gen >= 8) {
|
||||||
|
|
Loading…
Reference in New Issue