From: bugzilla-daemon@freedesktop.org Subject: [Bug 106601] The internal format RGB32F is not color-renderable, This is not in accordance with Opengl 3.0 spec Date: Tue, 22 May 2018 13:23:06 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0170235289==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id 258436E2A9 for ; Tue, 22 May 2018 13:23:06 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0170235289== Content-Type: multipart/alternative; boundary="15269953861.5Cf6C6.30345" Content-Transfer-Encoding: 7bit --15269953861.5Cf6C6.30345 Date: Tue, 22 May 2018 13:23:06 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D106601 --- Comment #5 from Ilia Mirkin --- Note that in the core OpenGL 4.6 specification, table 8.12, GL_RGB32F is ma= rked as color-renderable, but not required to be renderable. Looking at the OpenGL 3.0 spec, page 180, RGB32F is listed in the "texture-only" formats. Table 3.18 has nothing to do with these from what I= can tell, but table 3.16 merely lists out the formats and their info, not wheth= er they must be possible to render to. A few more quotes: """ Required Renderbuffer Formats Implementations are required to support the same internal formats for renderbuffers as the required formats for textures enumerated in section 3.= 9.1, with the exception of the color formats labelled =E2=80=9Ctexture-only=E2= =80=9D """ """ Required Framebuffer Formats Implementations must support framebuffer objects with up to MAX COLOR ATTACHMENTS color attachments, a depth attachment, and a stencil attachment. Each color attachment may be in any of the required color formats for textu= res and renderbuffers described in sections 3.9.1 and 4.4.2. """ I'll admit that the latter is slightly vague, whether texture-only formats = need to be supported. However looking at some of the other texture-only formats, like RGB9_E5 or COMPRESSED RG RGTC2 -- I think it's pretty clear that those aren't meant to be required to be renderable to. However in practice, FYI, no hardware actually supports rendering to RGB32F (irrespective of what the driver might let you do). On the bright side, (almost) no hardware supports RGB32F for texturing either (except TBO's) -- creating a RGB32F texture will allocate a RGBA32F texture deep down inside.= So chances are, the NVIDIA driver sees that the true internal format is RGBA32F and lets you render to it, even though the API internal format is RGB32F. I don't see anything in the spec which requires this type of logic on the driver's behalf though. What the NVIDIA driver does is fully legal, but har= dly required. --=20 You are receiving this mail because: You are the assignee for the bug.= --15269953861.5Cf6C6.30345 Date: Tue, 22 May 2018 13:23:06 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Commen= t # 5 on bug 10660= 1 from Ilia Mirkin
Note that in the core OpenGL 4.6 specification, table 8.12, GL=
_RGB32F is marked
as color-renderable, but not required to be renderable.

Looking at the OpenGL 3.0 spec, page 180, RGB32F is listed in the
"texture-only" formats. Table 3.18 has nothing to do with these f=
rom what I can
tell, but table 3.16 merely lists out the formats and their info, not wheth=
er
they must be possible to render to.

A few more quotes:

"""
Required Renderbuffer Formats

Implementations are required to support the same internal formats for
renderbuffers as the required formats for textures enumerated in section 3.=
9.1,
with the exception of the color formats labelled =E2=80=9Ctexture-only=E2=
=80=9D
"""

"""
Required Framebuffer Formats

Implementations must support framebuffer objects with up to MAX COLOR
ATTACHMENTS color attachments, a depth attachment, and a stencil attachment.
Each color attachment may be in any of the required color formats for textu=
res
and renderbuffers described in sections 3.9.1 and 4.4.2.
"""

I'll admit that the latter is slightly vague, whether texture-only formats =
need
to be supported. However looking at some of the other texture-only formats,
like RGB9_E5 or COMPRESSED RG RGTC2 -- I think it's pretty clear that those
aren't meant to be required to be renderable to.

However in practice, FYI, no hardware actually supports rendering to RGB32F
(irrespective of what the driver might let you do). On the bright side,
(almost) no hardware supports RGB32F for texturing either (except TBO's) --
creating a RGB32F texture will allocate a RGBA32F texture deep down inside.=
 So
chances are, the NVIDIA driver sees that the true internal format is RGBA32F
and lets you render to it, even though the API internal format is RGB32F.

I don't see anything in the spec which requires this type of logic on the
driver's behalf though. What the NVIDIA driver does is fully legal, but har=
dly
required.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15269953861.5Cf6C6.30345-- --===============0170235289== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0170235289==--