8C07FE68 WARN Accumulation buffer not supported

If you have any questions on programming, this is the place to ask them, whether you're a newbie or an experienced programmer. Discussion on programming in general is also welcome. We will help you with programming homework, but we will not do your work for you! Any porting requests must be made in Developmental Ideas.
Post Reply
Jae686
Insane DCEmu
Insane DCEmu
Posts: 112
https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
Joined: Sat Sep 22, 2007 9:43 pm
Location: Braga - Portugal
Has thanked: 0
Been thanked: 0

8C07FE68 WARN Accumulation buffer not supported

Post by Jae686 »

Good evening.
After making a git pull and rebuilding KOS, my code, that previously worked, throws the following errors on lxdream :

Code: Select all


Descobertos 16 ficheiros para carregar
rewinddir: call ignored
A carregar o .png 
inside add_texture: 
string duplicada overlay 
WIDTH : 512, HEIGHT : 64
H: 64 	 W: 512
texture loaded into memory : rd/overlay.png
PERCENT LOADED : 0.062500 
PERCENT LOADED : 0.125000 
21:32:51 8C07FE68 WARN  Accumulation buffer not supported
21:32:51 8C07FE68 WARN  Accumulation buffer not supported
21:32:51 8C07FE68 WARN  Accumulation buffer not supported
21:32:51 8C07FE68 WARN  Accumulation buffer not supported
21:32:51 8C07FE68 WARN  Accumulation buffer not supported
21:32:51 8C07FE68 WARN  Accumulation buffer not supported
inside add_texture: 
string duplicada bw 
21:32:51 8C07FE68 WARN  Accumulation buffer not supported
21:32:51 8C07FE68 WARN  Accumulation buffer not supported
21:32:51 8C07FE68 WARN  Accumulation buffer not supported
21:32:51 8C07FE68 WARN  Accumulation buffer not supported
21:32:51 8C07FE68 WARN  Accumulation buffer not supported
21:32:51 8C07FE68 WARN  Accumulation buffer not supported
21:32:51 8C07FE68 WARN  Accumulation buffer not supported
21:32:51 8C07FE68 WARN  Accumulation buffer not supported
21:32:51 8C07FE68 WARN  Accumulation buffer not supported
21:32:51 8C07FE68 WARN  Accumulation buffer not supported
21:32:51 8C07FE68 WARN  Accumulation buffer not supported
21:32:51 8C07FE68 WARN  Accumulation buffer not supported
WIDTH : 256, HEIGHT : 256

KOS GL ERROR THROWN BY FUNCTION: glTexImage2D

KOS GL ERROR: GL_INVALID_OPERATION
#txtldr ok
H: 256 	 W: 256
texture loaded into memory : rd/bw.pcx
PERCENT LOADED : 0.187500 
21:32:52 8C07FE68 WARN  Accumulation buffer not supported
21:32:52 8C07FE68 WARN  Accumulation buffer not supported
21:32:52 8C07FE68 WARN  Accumulation buffer not supported
21:32:52 8C07FE68 WARN  Accumulation buffer not supported



After seeing the KOS GL ERROR , I've pulled and rebuilt libgl, but with no success.

Any thoughts on what caused this?
User avatar
bogglez
Moderator
Moderator
Posts: 578
Joined: Sun Apr 20, 2014 9:45 am
Has thanked: 0
Been thanked: 0

Re: 8C07FE68 WARN Accumulation buffer not supported

Post by bogglez »

That's an error in lxdream it seems: https://bitbucket.org/bogglez/lxdream/s ... ter#cl-205

Code: Select all

 int srcblend = POLY2_SRC_BLEND(poly2);
     int destblend = POLY2_DEST_BLEND(poly2);
     glBlendFunc( srcblend, destblend );

     if( POLY2_SRC_BLEND_TARGET(poly2) || POLY2_DEST_BLEND_TARGET(poly2) ) {
         WARN( "Accumulation buffer not supported" );
     } 

Code: Select all

#define POLY2_DEST_BLEND(poly2) ( pvr2_poly_dstblend[((poly2)>>26)&0x07] )

Code: Select all

int pvr2_poly_dstblend[8] = {
        GL_ZERO, GL_ONE, GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR,
        GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_DST_ALPHA,
        GL_ONE_MINUS_DST_ALPHA };
I don't know why you get that error in glTexImage2D, it has nothing to do with the accumulation buffer..
I grepped this call in your code however:

Code: Select all

glBlendFunc( GL_ONE, GL_ONE_MINUS_SRC_ALPHA );
Does commenting it out make your problem disappear?
Wiki & tutorials: http://dcemulation.org/?title=Development
Wiki feedback: viewtopic.php?f=29&t=103940
My libgl playground (not for production): https://bitbucket.org/bogglez/libgl15
My lxdream fork (with small fixes): https://bitbucket.org/bogglez/lxdream
User avatar
bogglez
Moderator
Moderator
Posts: 578
Joined: Sun Apr 20, 2014 9:45 am
Has thanked: 0
Been thanked: 0

Re: 8C07FE68 WARN Accumulation buffer not supported

Post by bogglez »

Seems to be caused by

Code: Select all

pvr_poly_cxt_t c;
c.blend.src_enable = PVR_BLEND_ENABLE;
Wiki & tutorials: http://dcemulation.org/?title=Development
Wiki feedback: viewtopic.php?f=29&t=103940
My libgl playground (not for production): https://bitbucket.org/bogglez/libgl15
My lxdream fork (with small fixes): https://bitbucket.org/bogglez/lxdream
Jae686
Insane DCEmu
Insane DCEmu
Posts: 112
Joined: Sat Sep 22, 2007 9:43 pm
Location: Braga - Portugal
Has thanked: 0
Been thanked: 0

Re: 8C07FE68 WARN Accumulation buffer not supported

Post by Jae686 »

bogglez wrote:Seems to be caused by

Code: Select all

pvr_poly_cxt_t c;
c.blend.src_enable = PVR_BLEND_ENABLE;
But was it caused by the latest KOS commit ?

Commenting out the

Code: Select all

 glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
Does not change anything.

The errors related to libgl......they were not there before. (and I do "make clean" a lot during development).
Jae686
Insane DCEmu
Insane DCEmu
Posts: 112
Joined: Sat Sep 22, 2007 9:43 pm
Location: Braga - Portugal
Has thanked: 0
Been thanked: 0

Re: 8C07FE68 WARN Accumulation buffer not supported

Post by Jae686 »

Reverting the KOS to

Code: Select all

git checkout a17ed9
Made it work fine again.
User avatar
BlueCrab
The Crabby Overlord
The Crabby Overlord
Posts: 5658
Joined: Mon May 27, 2002 11:31 am
Location: Sailing the Skies of Arcadia
Has thanked: 9 times
Been thanked: 69 times
Contact:

Re: 8C07FE68 WARN Accumulation buffer not supported

Post by BlueCrab »

Try going back to the current revision, but doing a "make clean" on all of KOS, libgl, and your code, then rebuilding each (in the same order, of course). I have a feeling that one of those was not re-built after commit b38b50, which added stuff to the pvr_poly_cxt_t structure (which could very well be causing something to get screwed up along the way like what is happening to your code).
User avatar
bogglez
Moderator
Moderator
Posts: 578
Joined: Sun Apr 20, 2014 9:45 am
Has thanked: 0
Been thanked: 0

Re: 8C07FE68 WARN Accumulation buffer not supported

Post by bogglez »

BlueCrab wrote:Try going back to the current revision, but doing a "make clean" on all of KOS, libgl, and your code, then rebuilding each (in the same order, of course). I have a feeling that one of those was not re-built after commit b38b50, which added stuff to the pvr_poly_cxt_t structure (which could very well be causing something to get screwed up along the way like what is happening to your code).
I also believe that he's now writing to the wrong member in the pvr_poly_cxt_t struct, but he said he cleaned everything. Maybe he forgot something :?
Wiki & tutorials: http://dcemulation.org/?title=Development
Wiki feedback: viewtopic.php?f=29&t=103940
My libgl playground (not for production): https://bitbucket.org/bogglez/libgl15
My lxdream fork (with small fixes): https://bitbucket.org/bogglez/lxdream
Jae686
Insane DCEmu
Insane DCEmu
Posts: 112
Joined: Sat Sep 22, 2007 9:43 pm
Location: Braga - Portugal
Has thanked: 0
Been thanked: 0

Re: 8C07FE68 WARN Accumulation buffer not supported

Post by Jae686 »

Good Afternoon.
Thank you for your replies.


After I did

Code: Select all

git checkout HEAD
and performed

Code: Select all

 make clean
and

Code: Select all

 make 
On KOS-BASE and KOS-PORTS/libgl, it compiled and worked fine.

Although now git pull states that I'm currently not on a branch.

Best Regards !
User avatar
BlueCrab
The Crabby Overlord
The Crabby Overlord
Posts: 5658
Joined: Mon May 27, 2002 11:31 am
Location: Sailing the Skies of Arcadia
Has thanked: 9 times
Been thanked: 69 times
Contact:

Re: 8C07FE68 WARN Accumulation buffer not supported

Post by BlueCrab »

Run "git pull origin master" and that message from git should be fixed.
Post Reply