Re: [Mesa-dev] [PATCH 08/13] mesa/main: fix validation of GL_TIME_ELAPSED

2018-11-08 Thread Erik Faye-Lund
On Thu, 2018-11-08 at 11:40 +0200, Tapani Pälli wrote: > > On 11/7/18 5:58 PM, Erik Faye-Lund wrote: > > ctx->Extensions.EXT_timer_query is set based on the driver- > > capabilities, not based on the context type. We need to check > > against > > _mesa_has_EXT_timer_query(ctx) instead to figure ou

Re: [Mesa-dev] [PATCH 08/13] mesa/main: fix validation of GL_TIME_ELAPSED

2018-11-08 Thread Tapani Pälli
On 11/7/18 5:58 PM, Erik Faye-Lund wrote: ctx->Extensions.EXT_timer_query is set based on the driver- capabilities, not based on the context type. We need to check against _mesa_has_EXT_timer_query(ctx) instead to figure out if the extension is really supported. This turns usage of GL_TIME_ELA

[Mesa-dev] [PATCH 08/13] mesa/main: fix validation of GL_TIME_ELAPSED

2018-11-07 Thread Erik Faye-Lund
ctx->Extensions.EXT_timer_query is set based on the driver- capabilities, not based on the context type. We need to check against _mesa_has_EXT_timer_query(ctx) instead to figure out if the extension is really supported. This turns usage of GL_TIME_ELAPSED into an error on ES 3, as is required by