ChanServ changed the topic of #dri-devel to: <ajax> nothing involved with X should ever be unable to find a bar
flto has quit [Quit: Leaving]
mbrost has quit [Read error: Connection reset by peer]
flto has joined #dri-devel
<anarsoul>
why does mesa set src_factor = dst_factor = alpha_src_factor = alpha_dst_factor = PIPE_BLENDFACTOR_ONE for glBlendEquation(GL_MIN) or glBlendEquation(GL_MAX)?
<anarsoul>
that happens in st_update_blend() in src/mesa/state_tracker/st_atom_blend.c
<anarsoul>
I hacked piglit arb_blend_func_extended-fbo-extended-blend to use ES2_compatibility and EXT_blend_func_extended and it fails for blend equation GL_MIN and GL_MAX
<anarsoul>
because all the factors are set to 1
<airlied>
GL_MIN/MAX don't use the factors
mbrost has joined #dri-devel
<anarsoul>
I see
LexSfX has quit [Remote host closed the connection]
Bennett has quit [Remote host closed the connection]
mclasen has quit [Ping timeout: 480 seconds]
LexSfX has joined #dri-devel
gawin has quit [Quit: Konversation terminated!]
co1umbarius has joined #dri-devel
columbarius has quit [Ping timeout: 480 seconds]
<anarsoul>
airlied: hehe, looks like it's not the case for mali utgard
<anarsoul>
it looks like it does min/max((Cs * S + Cd * D), Cd)
<anarsoul>
so with S = D = 1 it gets incorrect result
<anarsoul>
well, correct but not conformant
ybogdano has quit [Ping timeout: 480 seconds]
<alyssa>
the spec says the factors are ignored for min/max
<alyssa>
if lima cares, that's a driver bug..
<airlied>
yeah if the hw needs something special, you'd have to program it appropriately
<alyssa>
airlied: mali of the past decade solved this by removing min/max blending hw, poof
<airlied>
do you use a shader?
<alyssa>
yep
<alyssa>
the mali blend hardware (from midgard on) actually does something like "a + b*c"
<alyssa>
where a,b,c are enums
<alyssa>
it's good enough for the most common blend modes, and it's useful because it only requires a single multiply (GL's blend definitiion needs 2)
<alyssa>
src_alpha * src + (1 - src_alpha) * dst
<alyssa>
for example, rewrite:
<alyssa>
src_alpha * src + dst - dst * src_alpha
<alyssa>
src_alpha * (src - dst) + dst
<alyssa>
So set a=dst, b=src_alpha, c=src-dst
<alyssa>
the logic in the driver for this is ... messy
<alyssa>
and if the app wants something that can't be fit into that pattern, too bad it gets a shader
<anarsoul>
alyssa: utgard cares, and lima handles it now
<airlied>
woot got some video frames out of zink_Video
<HdkR>
\o/
mbrost has quit [Ping timeout: 480 seconds]
camus has joined #dri-devel
camus1 has quit [Read error: Connection reset by peer]
kevintang has joined #dri-devel
fxkamd has quit []
flacks has quit [Quit: Quitter]
flacks has joined #dri-devel
flacks_ has joined #dri-devel
flacks has quit [Ping timeout: 480 seconds]
imirkin has joined #dri-devel
camus1 has joined #dri-devel
camus has quit [Ping timeout: 480 seconds]
imirkin has quit [Remote host closed the connection]
imirkin has joined #dri-devel
imirkin has quit [Read error: Connection reset by peer]
mattrope has quit [Read error: Connection reset by peer]
Duke`` has joined #dri-devel
imirkin has joined #dri-devel
ppascher has quit [Ping timeout: 480 seconds]
sdutt has quit [Remote host closed the connection]
vivijim has quit [Read error: Connection reset by peer]
itoral has joined #dri-devel
itoral_ has joined #dri-devel
itoral has quit [Ping timeout: 480 seconds]
camus has joined #dri-devel
aravind has joined #dri-devel
camus1 has quit [Ping timeout: 480 seconds]
Duke`` has quit [Ping timeout: 480 seconds]
pnowack has joined #dri-devel
pnowack has quit [Remote host closed the connection]
pnowack has joined #dri-devel
soreau has quit [Ping timeout: 480 seconds]
alanc has quit [Remote host closed the connection]
alanc has joined #dri-devel
danvet has joined #dri-devel
gouchi has joined #dri-devel
gouchi has quit []
i-garrison has quit []
ppascher has joined #dri-devel
tursulin has quit [Read error: Connection reset by peer]
rasterman has joined #dri-devel
i-garrison has joined #dri-devel
jkrzyszt has joined #dri-devel
tursulin has joined #dri-devel
camus1 has joined #dri-devel
camus has quit [Remote host closed the connection]
rgallaispou has joined #dri-devel
OftenTimeConsuming has quit [Remote host closed the connection]
jkrzyszt has quit [Remote host closed the connection]
OftenTimeConsuming has joined #dri-devel
jkrzyszt has joined #dri-devel
kevintang has quit [Read error: Connection reset by peer]
kevintang has joined #dri-devel
OftenTimeConsuming has quit [Remote host closed the connection]
OftenTimeConsuming has joined #dri-devel
OftenTimeConsuming has quit [Remote host closed the connection]
pcercuei has joined #dri-devel
OftenTimeConsuming has joined #dri-devel
OftenTimeConsuming has quit [Remote host closed the connection]
pcercuei_ has joined #dri-devel
OftenTimeConsuming has joined #dri-devel
pcercuei has quit [Ping timeout: 480 seconds]
mlankhorst has joined #dri-devel
OftenTimeConsuming has quit [Remote host closed the connection]
OftenTimeConsuming has joined #dri-devel
boistordu has joined #dri-devel
itoral_ has quit [Remote host closed the connection]
gawin has joined #dri-devel
camus has joined #dri-devel
camus1 has quit [Remote host closed the connection]
Lucretia-backup has joined #dri-devel
drawat_ has joined #dri-devel
Lucretia has quit [Ping timeout: 480 seconds]
kevintang has quit [Remote host closed the connection]