[Mesa-dev] Can't get OpenGL 3.x inside VMware Workstation 12 (Ubuntu guest)

Ilia Mirkin imirkin at alum.mit.edu
Wed Nov 11 09:01:52 PST 2015


On Wed, Nov 11, 2015 at 11:58 AM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
> On Wed, Nov 11, 2015 at 11:48 AM, Brian Paul <brianp at vmware.com> wrote:
>>> I think there is a hunk missing about --enable-texture-float for
>>> ARB_texture_float (and ultimately GL 3.0).
>>
>>
>> N/A; that option defines the TEXTURE_FLOAT_ENABLED symbol which is only
>> tested in _mesa_enable_sw_extensions().
>
> boolean
> util_format_is_supported(enum pipe_format format, unsigned bind)
> {
>    if (util_format_is_s3tc(format) && !util_format_s3tc_enabled) {
>       return FALSE;
>    }
>
> #ifndef TEXTURE_FLOAT_ENABLED
>    if ((bind & PIPE_BIND_RENDER_TARGET) &&
>        format != PIPE_FORMAT_R9G9B9E5_FLOAT &&
>        format != PIPE_FORMAT_R11G11B10_FLOAT &&
>        util_format_is_float(format)) {
>       return FALSE;
>    }
> #endif
>
>    return TRUE;
> }

Which is, amusingly, only used by the various hw drivers:

src/gallium/drivers/freedreno/a2xx/fd2_screen.c:
 !util_format_is_supported(format, usage)) {
src/gallium/drivers/freedreno/a3xx/fd3_screen.c:
 !util_format_is_supported(format, usage)) {
src/gallium/drivers/freedreno/a4xx/fd4_screen.c:
 !util_format_is_supported(format, usage)) {
src/gallium/drivers/i915/i915_screen.c:   if
(!util_format_is_supported(format, tex_usage))
src/gallium/drivers/ilo/ilo_screen.c:   if
(!util_format_is_supported(format, bindings))
src/gallium/drivers/nouveau/nv30/nv30_screen.c:   if
(!util_format_is_supported(format, bindings)) {
src/gallium/drivers/nouveau/nv50/nv50_screen.c:   if
(!util_format_is_supported(format, bindings))
src/gallium/drivers/nouveau/nvc0/nvc0_screen.c:   if
(!util_format_is_supported(format, bindings))
src/gallium/drivers/r300/r300_screen.c:    if
(!util_format_is_supported(format, usage))
src/gallium/drivers/r600/evergreen_state.c:     if
(!util_format_is_supported(format, usage))
src/gallium/drivers/r600/r600_state.c:  if
(!util_format_is_supported(format, usage))
src/gallium/drivers/radeonsi/si_state.c:        if
(!util_format_is_supported(format, usage))
src/gallium/drivers/vc4/vc4_screen.c:
!util_format_is_supported(format, usage)) {


More information about the mesa-dev mailing list