Skip to content

Commit

Permalink
mesa: enable only freedreno for hammerhead
Browse files Browse the repository at this point in the history
* we don't need other drivers enabled by default:
  GALLIUMDRIVERS="swrast,r300,svga,nouveau,virgl,freedreno"
  GALLIUMDRIVERS_LLVM="r300,svga,nouveau"

        Gallium drivers: swrast r300 svga nouveau virgl freedreno
        Gallium st:      mesa

  and building svga driver for hammerhead fails with:
| ../../../../../mesa-18.3.4/src/gallium/drivers/svga/svga_msg.c: In function 'svga_host_log':
| ../../../../../mesa-18.3.4/src/gallium/drivers/svga/svga_msg.c:86:4: error: impossible constraint in 'asm'
|  ({                                         \
|  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|     __asm__ volatile ("inl %%dx, %%eax;" :  \
|     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|        "=a"(ax),                            \
|        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|        "=b"(bx),                            \
|        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|        "=c"(cx),                            \
|        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|        "=d"(dx),                            \
|        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|        "=S"(si),                            \
|        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|        "=D"(di) :                           \
|        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|        "a"(magic),                          \
|        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|        "b"(in_bx),                          \
|        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|        "c"(cmd),                            \
|        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|        "d"(port_num),                       \
|        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|        "S"(in_si),                          \
|        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|        "D"(in_di) :                         \
|        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|        "memory");                           \
|        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|  })
|  ~~

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
  • Loading branch information
shr-project committed Mar 20, 2019
1 parent 75615c4 commit b4531d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion meta-luneui/recipes-graphics/mesa/mesa_%.bbappend
Expand Up @@ -4,4 +4,5 @@ PACKAGECONFIG_append_class-target = " gallium gallium-llvm"
PACKAGECONFIG_append_class-target = " gbm"

# Enable freedreno driver
GALLIUMDRIVERS_append_hammerhead = ",freedreno"
GALLIUMDRIVERS_hammerhead = "freedreno"
GALLIUMDRIVERS_LLVM_hammerhead = ""

0 comments on commit b4531d5

Please sign in to comment.