mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 23:20:08 +01:00
965: get brw_wm_surface_state compiling again
This commit is contained in:
parent
568fcf64c7
commit
7a2d3ac5bc
2 changed files with 11 additions and 3 deletions
|
|
@ -203,6 +203,9 @@ static void * brw_create_fs_state(struct pipe_context *pipe,
|
|||
brw_shader_info(shader->tokens,
|
||||
&brw_fp->info);
|
||||
|
||||
tgsi_dump(shader->tokens, 0);
|
||||
|
||||
|
||||
return (void *)brw_fp;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -189,6 +189,9 @@ static void upload_wm_surfaces(struct brw_context *brw )
|
|||
|
||||
{
|
||||
struct brw_surface_state surf;
|
||||
|
||||
/* BRW_NEW_FRAMEBUFFER
|
||||
*/
|
||||
struct pipe_surface *region = brw->attribs.FrameBuffer.cbufs[0];/*fixme*/
|
||||
|
||||
memset(&surf, 0, sizeof(surf));
|
||||
|
|
@ -213,7 +216,7 @@ static void upload_wm_surfaces(struct brw_context *brw )
|
|||
surf.ss0.surface_type = BRW_SURFACE_NULL;
|
||||
}
|
||||
|
||||
/* _NEW_COLOR */
|
||||
/* BRW_NEW_BLEND */
|
||||
surf.ss0.color_blend = (!brw->attribs.Blend->logicop_enable &&
|
||||
brw->attribs.Blend->blend_enable);
|
||||
|
||||
|
|
@ -235,7 +238,7 @@ static void upload_wm_surfaces(struct brw_context *brw )
|
|||
for (i = 0; i < BRW_MAX_TEX_UNIT; i++) {
|
||||
const struct brw_texture *texUnit = brw->attribs.Texture[i];
|
||||
|
||||
/* _NEW_TEXTURE, BRW_NEW_TEXDATA
|
||||
/* BRW_NEW_TEXTURE
|
||||
*/
|
||||
if (texUnit->base.refcount/*(texUnit->refcount > 0) == really used */) {
|
||||
|
||||
|
|
@ -299,7 +302,9 @@ static void emit_reloc_wm_surfaces(struct brw_context *brw)
|
|||
|
||||
const struct brw_tracked_state brw_wm_surfaces = {
|
||||
.dirty = {
|
||||
.brw = BRW_NEW_CONTEXT,
|
||||
.brw = (BRW_NEW_FRAMEBUFFER |
|
||||
BRW_NEW_BLEND |
|
||||
BRW_NEW_TEXTURE),
|
||||
.cache = 0
|
||||
},
|
||||
.update = upload_wm_surfaces,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue