Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 03-09-11, 06:51 AM   #1
evena
Registered User
 
Join Date: Feb 2004
Posts: 14
Default glCopyPixels + GLX_SAMPLE_BUFFERS +glFinish + glDrawBuffer

For an application that does it's own copying of the backbuffer to the frontbuffer using glCopyPixels, if multisampling is used, adding a call to gllFinish after glDrawBuffer causes glCopyPixels to fail.

Either the whole buffer is copied / drawing is sent to the front buffer, or no copying is done.

Tested drivers: 260.19.29 and 260.19.44

Compile with g++ -g -o bug main.C -lGL -lX11
run as:
./bug [ correct ]
./buf -f [ correct, including calls to glFinish() ]
./bug -ms [ correct multisampled ]
./bug -ms -f [ incorrect multisampled including calls to glFinish() ]
Attached Files
File Type: gz nvidia-bug-report.log.gz (70.6 KB, 50 views)
File Type: gz main.C.gz (2.7 KB, 64 views)
evena is offline   Reply With Quote
Old 03-09-11, 07:55 PM   #2
danix
NVIDIA Corporation
 
danix's Avatar
 
Join Date: Feb 2010
Location: Santa Clara, CA
Posts: 237
Default Re: glCopyPixels + GLX_SAMPLE_BUFFERS +glFinish + glDrawBuffer

Hello evena,

Could you please clarify how the expected correct behavior and the observed incorrect behavior is supposed to manifest? To be honest, all four runs of the app with the different combinations of multisampling and wether or not to call glFinish() look pretty similar to me, at least on the system that I tested.
danix is offline   Reply With Quote
Old 03-10-11, 01:54 AM   #3
evena
Registered User
 
Join Date: Feb 2004
Posts: 14
Default Re: glCopyPixels + GLX_SAMPLE_BUFFERS +glFinish + glDrawBuffer

Hi danix,

The purpose is to update only a part of the frontbuffer,

If I use xv to grab the window,

bug-ok shows expected results
bug-ms-f1 shows result of running ./bug -ms -f1 (No update to front buffer)
bug-ms-f2 shows result of running ./bug -ms -f2 (Complete update to front buffer)

Regards,

Even
Attached Thumbnails
Click image for larger version

Name:	bug-ok.jpg
Views:	54
Size:	23.7 KB
ID:	42392  Click image for larger version

Name:	bug-ms-f1.jpg
Views:	52
Size:	22.1 KB
ID:	42393  Click image for larger version

Name:	bug-ms-f2.png
Views:	50
Size:	2.5 KB
ID:	42394  
evena is offline   Reply With Quote
Old 03-10-11, 11:48 AM   #4
danix
NVIDIA Corporation
 
danix's Avatar
 
Join Date: Feb 2010
Location: Santa Clara, CA
Posts: 237
Default Re: glCopyPixels + GLX_SAMPLE_BUFFERS +glFinish + glDrawBuffer

Okay, thanks. In that case I was getting the correct result even in your failing case. I'll match your hardware/software configuration (from the nvidia-bug-report) more closely.
danix is offline   Reply With Quote
Old 03-11-11, 01:23 AM   #5
evena
Registered User
 
Join Date: Feb 2004
Posts: 14
Default Re: glCopyPixels + GLX_SAMPLE_BUFFERS +glFinish + glDrawBuffer

Great,

Thank you for looking into this,


Even
evena is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 11:51 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.