[PATCH] glamor: fallback if font is too large for FBO size.

2016-01-10 Thread Dave Airlie
From: Dave Airlie running xfontsel on haswell here, with a max texture size of 8kx8k, one font wants 9711 height. This fallsback to sw in this case. A proper solution probably involves using an array texture. Signed-off-by: Dave Airlie --- glamor/glamor_font.c | 4 1 file changed, 4 inse

Re: [PATCH] glamor: fallback if font is too large for FBO size.

2016-01-11 Thread Keith Packard
Dave Airlie writes: > From: Dave Airlie > > running xfontsel on haswell here, with a max texture size > of 8kx8k, one font wants 9711 height. This fallsback to > sw in this case. > > A proper solution probably involves using an array texture. Given that we almost always need more height than wi

Re: [PATCH] glamor: fallback if font is too large for FBO size.

2016-01-11 Thread Keith Packard
Dave Airlie writes: > From: Dave Airlie > > running xfontsel on haswell here, with a max texture size > of 8kx8k, one font wants 9711 height. This fallsback to > sw in this case. > > A proper solution probably involves using an array texture. > > Signed-off-by: Dave Airlie > --- > glamor/glamo

Re: [PATCH] glamor: fallback if font is too large for FBO size.

2016-01-11 Thread Dave Airlie
On 12 January 2016 at 16:15, Keith Packard wrote: > Dave Airlie writes: > >> From: Dave Airlie >> >> running xfontsel on haswell here, with a max texture size >> of 8kx8k, one font wants 9711 height. This fallsback to >> sw in this case. >> >> A proper solution probably involves using an array t

Re: [PATCH] glamor: fallback if font is too large for FBO size.

2016-01-12 Thread Keith Packard
Dave Airlie writes: > from glTexImage2D man page: >GL_INVALID_VALUE is generated if width is less than 0 or greater than >GL_MAX_TEXTURE_SIZE. > > Granted we should bail early since we know we are going to fail. Ah, ok. Maybe we should check for that as well then, just in case th