[Bug 92907] ARB_copy_image breaks recording with obs-studio

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Nov 11 12:57:41 PST 2015


https://bugs.freedesktop.org/show_bug.cgi?id=92907

--- Comment #6 from Ilia Mirkin <imirkin at alum.mit.edu> ---
(In reply to Ilia Mirkin from comment #5)
> AFAIK this is illegal [copying between GL_RGB and GL_RGBA internal formats],
> but I haven't double-checked the ARB_copy_image spec or a full GL spec
> release (where these things are often updated).

Looks like the GL spec was slightly updated a bit on top of what
GL_ARB_copy_image says. This is the text from GL 4.5, Section 18.3.3 (Copying
Between Images):

For the purposes of CopyImageSubData, two internal formats are considered
compatible if any of the following conditions are met:

  • the formats are the same. If the formats are the same but are
    a base internal format, the the implementation’s effective internal
    format (see the end of section 8.5) for each image must be the same.
  • the formats are considered compatible according to the compatibility
    rules used for texture views as defined in section 8.18. In particular,
    if both internal formats are listed in the same entry of table 8.30,
    they are considered compatible
  • one format is compressed and the other is uncompressed and table 18.5
    lists the two formats in the same row.

The compressed bullet doesn't apply, and texture views are only defined for
sized formats. Looks like on top of what the ARB_copy_image spec says, we're
free to deny copying based on arbitrary rules if a base internal format is used
(like GL_RGBA/GL_RGB). But only if the two are the same... if they're not (as
is the case in the trace you gave), that's always illegal.

So... I'm gonna go with obs-studio bug.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20151111/3eb59e4d/attachment-0001.html>


More information about the dri-devel mailing list