Closed Bug 1233549 Opened 9 years ago Closed 8 years ago

Disallow ES3 compressed texture formats

Categories

(Core :: Graphics: CanvasWebGL, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla46
Tracking Status
firefox46 --- fixed

People

(Reporter: jrmuizel, Unassigned)

References

Details

(Whiteboard: gfx-noted)

Attachments

(1 file, 2 obsolete files)

This fixes assertion failures on platforms that don't have these formats. This is a temporary fix until we iron out this issue in the spec. It's easier to add this later than it is to take it away.
Attachment #8699624 - Attachment is patch: true
Attachment #8699624 - Flags: review?(jgilbert)
Comment on attachment 8699624 [details] [diff] [review]
Disallow ES3 compressed texture formats

Review of attachment 8699624 [details] [diff] [review]:
-----------------------------------------------------------------

Wrong patch.
Attachment #8699624 - Flags: review?(jgilbert) → review-
Flags: needinfo?(jmuizelaar)
Attachment #8699624 - Attachment is obsolete: true
Flags: needinfo?(jmuizelaar)
Attachment #8699793 - Flags: review?(jgilbert)
Comment on attachment 8699793 [details] [diff] [review]
Disallow ES3 compressed texture formats

Review of attachment 8699793 [details] [diff] [review]:
-----------------------------------------------------------------

::: dom/canvas/WebGLFormats.cpp
@@ +88,5 @@
>  InitCompressedFormatInfo()
>  {
>      // GLES 3.0.4, p147, table 3.19
>      // GLES 3.0.4, p286+, $C.1 "ETC Compressed Texture Image Formats"
> +#if ALLOW_ES3_FORMATS

Don't ifdef off these.

@@ +249,5 @@
>      AddFormatInfo(FOO(STENCIL_INDEX8), 1, UnsizedFormat::S, false, ComponentType::UInt);
>  
>      // GLES 3.0.4, p147, table 3.19
>      // GLES 3.0.4  p286+  $C.1 "ETC Compressed Texture Image Formats"
> +#if ALLOW_ES3_FORMATS

Don't ifdef off these.

@@ +784,5 @@
>      fnAllowES3TexFormat(FOO(DEPTH32F_STENCIL8 ), true, false);
>  
>      // GLES 3.0.4, p147, table 3.19
>      // GLES 3.0.4, p286+, $C.1 "ETC Compressed Texture Image Formats"
> +#if ALLOW_ES3_FORMATS

Only ifdef off these.
Attachment #8699793 - Flags: review?(jgilbert) → review-
Attachment #8699793 - Attachment is obsolete: true
Attachment #8700206 - Flags: review?(jgilbert)
Attachment #8700206 - Flags: review?(jgilbert) → review+
Whiteboard: gfx-noted
https://hg.mozilla.org/mozilla-central/rev/e1e0539dd11e
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla46
Hi Jeff,
I would like to do the following work of the compressed texture. If you are working on it, I will skip it to avoid duplicating work.
Flags: needinfo?(jmuizelaar)
(In reply to Ethan Lin[:ethlin] from comment #7)
> Hi Jeff,
> I would like to do the following work of the compressed texture. If you are
> working on it, I will skip it to avoid duplicating work.

Create a new bug and cc us, so we can talk about the path forward there.
(In reply to Jeff Gilbert [:jgilbert] from comment #8)
> (In reply to Ethan Lin[:ethlin] from comment #7)
> > Hi Jeff,
> > I would like to do the following work of the compressed texture. If you are
> > working on it, I will skip it to avoid duplicating work.
> 
> Create a new bug and cc us, so we can talk about the path forward there.

OK, I will create a new bug.
Flags: needinfo?(jmuizelaar)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: