From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ@public.gmane.org Subject: [Bug 93110] New: [NVE4] textureSize() and textureQueryLevels() uses a texture bound during the previous draw call Date: Thu, 26 Nov 2015 00:38:15 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2054883628==" Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: nouveau-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Sender: "Nouveau" To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org List-Id: nouveau.vger.kernel.org --===============2054883628== Content-Type: multipart/alternative; boundary="1448498295.3BaD0b300.24951"; charset="UTF-8" --1448498295.3BaD0b300.24951 Date: Thu, 26 Nov 2015 00:38:15 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=93110 Bug ID: 93110 Summary: [NVE4] textureSize() and textureQueryLevels() uses a texture bound during the previous draw call Product: Mesa Version: 10.5 Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: normal Priority: medium Component: Drivers/DRI/nouveau Assignee: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Reporter: joseph.kucia-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org QA Contact: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Created attachment 120124 --> https://bugs.freedesktop.org/attachment.cgi?id=120124&action=edit A small program to demonstrate the issue It seems that a texture bound in the previous draw call is used by textureSize() and textureQueryLevels() (instead of the currently bound texture). The attached program demonstrated the bug. When the program is built with -DBROKEN, it incorrectly prints "width: 2.000000 height 2.000000 miplevels 2.000000" while the current texture is 512x256 with 4 miplevels. OpenGL vendor string: nouveau OpenGL renderer string: Gallium 0.4 on NVE4 OpenGL core profile version string: 4.1 (Core Profile) Mesa 11.0.5 OpenGL core profile shading language version string: 4.10 OpenGL core profile context flags: (none) OpenGL core profile profile mask: core profile 01:00.0 VGA compatible controller: NVIDIA Corporation GK104 [GeForce GTX 760] (rev a1) (prog-if 00 [VGA controller]) -- You are receiving this mail because: You are the QA Contact for the bug. You are the assignee for the bug. --1448498295.3BaD0b300.24951 Date: Thu, 26 Nov 2015 00:38:15 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"
Bug ID 93110
Summary [NVE4] textureSize() and textureQueryLevels() uses a texture bound during the previous draw call
Product Mesa
Version 10.5
Hardware x86-64 (AMD64)
OS Linux (All)
Status NEW
Severity normal
Priority medium
Component Drivers/DRI/nouveau
Assignee nouveau@lists.freedesktop.org
Reporter joseph.kucia@gmail.com
QA Contact nouveau@lists.freedesktop.org

Created attachment 120124 [details]
A small program to demonstrate the issue

It seems that a texture bound in the previous draw call is used by
textureSize() and textureQueryLevels() (instead of the currently bound
texture).

The attached program demonstrated the bug. When the program is built with
-DBROKEN, it incorrectly prints "width: 2.000000 height 2.000000 miplevels
2.000000" while the current texture is 512x256 with 4 miplevels.

OpenGL vendor string: nouveau
OpenGL renderer string: Gallium 0.4 on NVE4
OpenGL core profile version string: 4.1 (Core Profile) Mesa 11.0.5
OpenGL core profile shading language version string: 4.10
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

01:00.0 VGA compatible controller: NVIDIA Corporation GK104 [GeForce GTX 760]
(rev a1) (prog-if 00 [VGA controller])


You are receiving this mail because:
  • You are the QA Contact for the bug.
  • You are the assignee for the bug.
--1448498295.3BaD0b300.24951-- --===============2054883628== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KTm91dmVhdSBt YWlsaW5nIGxpc3QKTm91dmVhdUBsaXN0cy5mcmVlZGVza3RvcC5vcmcKaHR0cDovL2xpc3RzLmZy ZWVkZXNrdG9wLm9yZy9tYWlsbWFuL2xpc3RpbmZvL25vdXZlYXUK --===============2054883628==--